My navigigation is
Stack Drawer DrawerScreen1 DrawerScreen2 StackScreen
The Drawer.Navigator
accepts a prop drawerContent
.
drawerContent
accepts a function of type (props) => React.Element
.
The type of props.navigator
in drawerContent
function is DrawerNavigationHelpers
. This does not allow navigation.push
.
How can we assign a type so that props.navigator
has both drawer and stack
methods?