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

renderIcon doesn't work #36

Closed amibition521 closed 8 years ago

amibition521 commented 8 years ago

renderIcon={() => <Image source={require('image!home')} style = {styles.size}/>} renderSelectedIcon={() => <Image source={require('image!home')} style = {styles.size}/>} 20151219202518

amibition521 commented 8 years ago

renderIcon = {Image source={require ('image!ic_collected_white')}} renderSelectedIcon = {Image source={require('image!ic_collect_white')}}

ide commented 8 years ago

Can you verify that your icon <Image> components show up when you use them outside of the TabNavigator?

amibition521 commented 8 years ago

TabNavigator Are there any requirements for image size?

ide commented 8 years ago

You should make them about 22x22 big but it doesn't need to be exact. You can also put some margin/padding on them to adjust their positions.

amibition521 commented 8 years ago

Thanks