react-navigation / react-navigation

Routing and navigation for your React Native apps
https://reactnavigation.org
23.58k stars 5.04k forks source link

React Navigation doesn't show the top bar when add createMaterialBottomTabNavigator in Version 3. #5454

Closed zeta-o closed 5 years ago

zeta-o commented 5 years ago

Hi Guys, I'm using createMaterialBottomTabNavigator to create a bottom tab menu. But when I run the project the header is not showing.

"react-navigation": "^3.0.9", "react-navigation-material-bottom-tabs": "^1.0.0"

const App = createMaterialBottomTabNavigator({ Services: { screen:ServicesScreen, navigationOptions: { tabBarLabel: 'Servicios', tabBarColor: '#493F97', tabBarIcon: ({ tintColor, focused }) => (

      )
  },
},
Profile: {
  screen:ProfileScreen,
  navigationOptions: {
    tabBarLabel: 'Mi Perfil',
    tabBarColor: '#493F97',
    tabBarIcon: ({ tintColor, focused }) => (
        <FontAwesome5 size={25} color="white" name='user-circle' solid/>
      )
  },
}

});

export default createAppContainer(App);

brentvatne commented 5 years ago

it never did this, you need to use stack navigator to get a navigation bar or just add your own