ptomasroos / react-native-tab-navigator

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

How to apply a style for the Icon + Text in the TabNavigator.Item when it is selected ? #117

Closed WajeehZantout closed 7 years ago

WajeehZantout commented 7 years ago

There is only a prop for the selectedTitleStyle, which applies the style to the text and not the icon+Text.

WajeehZantout commented 7 years ago

capture This is what i want to do

WajeehZantout commented 7 years ago

I passed to the renderIcon() and renderSelectedIcon a function that returns a view including the icon and the title