Skip to content

Instantly share code, notes, and snippets.

@PrimeTimeTran
Last active February 4, 2019 09:04
Show Gist options
  • Save PrimeTimeTran/ca65df635b27859cabcf9eb41144f930 to your computer and use it in GitHub Desktop.
Save PrimeTimeTran/ca65df635b27859cabcf9eb41144f930 to your computer and use it in GitHub Desktop.
const ConversationsStack = createStackNavigator(
{
...
Conversations: ConversationsScreen,
...
},
{
...
navigationOptions: ({ navigation: { state: { index, routes } } }) => {
return {
tabBarVisible: true,
tabBarLabel: () => <Text style={styles.tabBarLabelStyle}>{t('tab.messages')}</Text>,
tabBarIcon: ({ focused }) => <TabBarIcon focused={focused} name="message-processing" />
}
}
}
)
const MainTabsScreens = createMaterialTopTabNavigator(
{
ConversationsStack,
},
{
tabBarPosition: 'bottom',
tabBarOptions: {
showIcon: true,
style: {
backgroundColor: 'red'
}
}
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment