Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

Cannot stack a bottomBarNavigation inside a drawer navigation

$
0
0

It seems that createDrawerNavigator now only supports the following:

<Drawer.Navigator initialRouteName="More" drawerContent={props => <MenuScreen />}>
   {/* <Drawer.Screen name="Tabbar" component={MainTabNavigator}/> */}
   <Drawer.Screen name="Projects" component={ProjectsScreen} />
   <Drawer.Screen name="More" component={MoreScreen} />
</Drawer.Navigator>

the commented line is throwing:

enter image description here

You can only include screens inside, what I'm trying to do is put a tabbar navigator using "createBottomTabNavigator". On previous versions of react-navigation it was possible, but I can't find a solution on the new version (I'm using "@react-navigation/drawer": "^5.0.0")

Any clues? thanks in advance


Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>