I’m new to React Native. I have to make an app for the WordPress backend. I’ve four items in DrawerNavigaton, Home and Categories, PostPage and Category screens.
<NavigationContainer>
<Drawer.Navigator>
<Drawer.Screen name="Home" component={Home}/>
<Drawer.Screen name='Categories' component={Categories}
<Drawer.Screen name="PostPage" component={PostPage}/>
<Drawer.Screen name='Category' component={Category}/>
</Drawer.Navigator>
</NavigationContainer>
I just want to hide the last two items.
Thanks.
2
Answers
Just this piece of code did magic:
Then use custom drawer
Sample code:
Demo link https://snack.expo.dev/mYo_6RI0a
Reference: https://reactnavigation.org/docs/drawer-navigator/