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

Tell custom icons if selected #39

Closed corbt closed 8 years ago

corbt commented 8 years ago

I'm using a custom component as the tab icon, and rather than rendering it twice in renderIcon and renderSelectedIcon, it's easier to just point to it once in renderIcon and then let it know in a prop whether it's selected or not. See the change to the README for an example.

corbt commented 8 years ago

Not using this component anymore and it doesn't seem like it's very active, so closing this PR.