Skip to content

Instantly share code, notes, and snippets.

@janhesters
Last active September 23, 2018 08:12
Show Gist options
  • Save janhesters/cdd9dda94d7e20e3d107a1d542504897 to your computer and use it in GitHub Desktop.
Save janhesters/cdd9dda94d7e20e3d107a1d542504897 to your computer and use it in GitHub Desktop.
// ... below const HomeStack = createStackNavigator(...
HomeStack.navigationOptions = {
tabBarLabel: "Home",
tabBarIcon: ({ tintColor }: TabScene) => (
<Icon name="ios-home" type="ionicon" color={tintColor} />
),
drawerLabel: "Home",
drawerIcon: ({ tintColor }: TabScene) => <Icon name="md-home" type="ionicon" color={tintColor} />
};
const SettingsStack = createStackNavigator({ SettingsScreen });
SettingsStack.navigationOptions = {
tabBarLabel: "Settings",
tabBarIcon: ({ tintColor }: TabScene) => <Icon name="ios-cog" type="ionicon" color={tintColor} />,
drawerLabel: "Settings",
drawerIcon: ({ tintColor }: TabScene) => <Icon name="md-cog" type="ionicon" color={tintColor} />
};
// ... rest of the navigators
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment