wix / react-native-navigation

A complete native navigation solution for React Native
https://wix.github.io/react-native-navigation/
MIT License
13.04k stars 2.67k forks source link

Tab bar app not showing tabs titles RNN v2.0.2384 #3482

Closed hisothreed closed 6 years ago

hisothreed commented 6 years ago

Issue Description

Tab bar app not showing tabs titles, it's only showing the icons after updating to RNN v2.0.2384

Code Snippets / Screenshots

screen shot 2018-07-02 at 9 20 54 pm

actual code:


in mainTabBar.js

export default () => ({
  children: [
    {
      stack: HomeStack()
    },
    {
      stack: ExploreStack()
    },
    {
      stack: ReservationStack()
    },
    {
      stack: MeStack()
    }
  ],
  options: {
    bottomTabs: {
      selectedTabColor: "black"
    }
  }
})

inside HomeStack()

export default () => ({
  children: [
    {
      component: {
        name: Screens.HomeScreen
      }
    }
  ],
  options: {
    bottomTab: {
      title: "Home",
      disableIconTint: true,
      disableSelectedIconTint: true,
      icon: require("../../assets/icons/tabBarIcons/homeTabBarIcon/icon.png"),
      selectedIcon: require("../../assets/icons/tabBarIcons/homeTabBarIconSelected/icon.png")
    }
  }
})

Environment

hisothreed commented 6 years ago

Please update your docs to reflect to your latest changes in the api, it seems that you changed the "title" prop into "text" in => options: { bottomTab: {} }