React-native-navigation: Tab bar app not showing tabs titles RNN v2.0.2384

Created on 2 Jul 2018  路  1Comment  路  Source: wix/react-native-navigation

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_

  • React Native Navigation version: v2.0.2384
  • React Native version: 0.54.4
  • Platform(s) (iOS, Android, or both?): Both
  • Device info (Simulator/Device? OS version? Debug/Release?): Simulator - ios 11.4

Most helpful comment

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: {} }

>All comments

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: {} }

Was this page helpful?
0 / 5 - 0 ratings