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

Custom styles for selected tabs and readme updates #57

Closed zubricky closed 8 years ago

zubricky commented 8 years ago

Added a change to update the style for selected tabs. For example:

selectedTabStyle={{backgroundColor: '...'}}

Also updated the readme to reflect the above change as well as an option of how to hide the navigation on Android.

ide commented 8 years ago

Thanks for the PR. We're doing some work that requires enhancements to the tabs in the coming days and will take your solution into consideration.

ide commented 8 years ago

<TabNavigator.Item tabStyle={...} /> is now supported in 0.3.1. If you want to configure the style when the tab is selected, pass in a different style when you pass in selected={true}.