Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

Prop type for drawerContent in a nested drawer navigator

$
0
0

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?


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>