0

I'm using React Native BottomTabNavigator.

Example:

<Tab.Navigator tabBarOptions={tabBarOptions} screenOptions={screenOptions}>
  <Tab.Screen name="Home" component={Home} />
  <Tab.Screen name="Saved" component={Saved} />
  <Tab.Screen name="Map" component={Map} />
  <Tab.Screen name="Profile" component={Profile} />
</Tab.Navigator>

I want to make the last tab focused instead of the first. I can't find any option in the documentation.

It should be something like options={{ focused: true }} Or maybe it's not implemented at all

ucha
  • 363
  • 2
  • 4
  • 12

1 Answers1

0
<Tab.Navigator initialRouteName={"Your Initial Screen Name"}
...>
</Tab.Navigator>
ATEC HUO
  • 3
  • 2