Created
May 21, 2018 10:37
-
-
Save VivekNayyar/06affe6e20ade68bbced787fdfd4e45a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
navigationOptions: ({ navigation }) => { | |
const { routeName, routes } = navigation.state; | |
return { | |
tabBarIcon: ({ focused, tintColor }) => { | |
// You can return any component that you like here! | |
// We usually create an icon component rendering some svg | |
return <Icon type={routeName} focused={focused} />; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment