ptomasroos / react-native-tab-navigator

A tab bar that switches between scenes, written in JS for cross-platform support
MIT License
2.4k stars 416 forks source link

Allow users to customize tab styles. #43

Closed drtangible closed 8 years ago

drtangible commented 8 years ago

Support tabStyle and selectedTabStyle props on TabNavigator.Item.

<TabNavigator
  tabBarStyle={styles.tabBar}
  sceneStyle={styles.scene}
  >
  <TabNavigator.Item
    title="ACCOUNT"
    selected={this.state.selectedTab === 'account'}
    onPress={() => { this.setState({ selectedTab: 'account' }) }}
    tabStyle={styles.tabBarItem}
    selectedTabStyle={styles.tabBarItemActive}
    titleStyle={styles.tabBarItemText}
    selectedTitleStyle={styles.tabBarItemActiveText}
    >
    // ...
drtangible commented 8 years ago

Whoops, just meant to open this as a PR on our fork. Closing for now!