1
votes

I am using React Navigation 5 with React Native. I have a drawer with two screen each is a stack navigator by itself. My setup is as follows:

<Drawer.Navigator
  initialRouteName='Balance'
  drawerType='slide'
  drawerContentOptions={drawerOption}
  drawerContent={drawerContent}
   
>
  <Drawer.Screen
    name='Home'
    component={UserStackScreen}
  />
  <Drawer.Screen name='Balance' component={BalanceStackScreen} />
</Drawer.Navigator>

When i load the app i am routed to the home screen not to the balance screen although my initialRouteName='Balance' Thank you

1

1 Answers

0
votes

There was nothing wrong with my setup. I just was routing to the User page directly from another Login screen.