how to add stack and drawer navigation in react code example
Example 1: create bottom navigation bar react native
Copyimport { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
const Tab = createBottomTabNavigator();
function MyTabs() { return ( );}
Example 2: put stacknavigator in drawernvigator
Home: { navigationOptions: { drawerIcon: ({ tintColor }) => ( ), drawerLabel: "Home" }, screen: Home},