I read the documentation of react-navigation to create drawer and tab navigator.
The drawer is good but the tab navigator does not meet my need.
I wish a bottom tab navigation was a shorcut to drawer menu and it should be displayed to all other screen.
Drawer menu I have : Menu A / Menu B / Menu C / Menu D
And in a bottom tab I don't want new screen navigation but just a shortcut navigation to Menu A and Menu D.
I managed to initiate what I wish with this
<>
<Drawer.Navigator>
<Drawer.Screen ...>
<Drawer.Screen ...>
</Drawer.Navigator />
<CustomBottomNavigation />
</>
The CustomBottonNavigation
use BottomNavigation of react-native-paper.
Work fine but the drawer menu does not pass in front of the bottom navigation (expected implementation behaviour)
So my question, is a better way to do this ? I search about a way to pass a component that should be displayed to all drawer screen but react-navigation drawer don't have a param to do this (to my knowledge).