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

Styling tab item possible? #24

Closed kinhunt closed 6 years ago

kinhunt commented 8 years ago

I would like to giving different styles (ie, backgroundColor) to each tab container, even different style depends on selected or not. is it possible?

ide commented 8 years ago

You can render any view you want with renderIcon and renderSelectedIcon... does that work for you?

kinhunt commented 8 years ago

renderIcon and renderSelectedIcon are very useful. It would be even more flexible if the tab container style can be customized.

In Tab.js, line 43

    let tabStyle = [styles.container, title ? null : styles.untitledContainer];
magrinj commented 8 years ago

I add this option in my PR #61

ptomasroos commented 6 years ago

Will close since this issue is more than a year, feel free to a open a new if this is still a issue.