ere's the code for the component
<NavigationContainer>
<Header deviceUid={deviceUid} />
<Drawer.Navigator
drawerContent={props => <MotionMenu {...props} />}
screenOptions={{
drawerPosition: 'right',
drawerType: 'front',
swipeEnabled: false,
drawerStyle: {
width: 320,
},
drawerContentContainerStyle: {
alignItems: 'center',
alignContent: 'center',
height: '100%',
},
headerShown: false,
detachInactiveScreens: false,
}}>
<Drawer.Screen
screenOptions={{
headerShown: false,
unmountOnBlur: false,
}}
name="App"
component={TabNavigation}
/>
</Drawer.Navigator>
</NavigationContainer>
I tried "drawerType: 'permanent'" but that just aligns the View & Drawer next to each other.
Try this sample and modify your code and navigation configuration accordingly:
Hope it will help you.