I have a nested Stacks
in my Drawer
:
const routes = {
Home: {
screen: withHeader(HomeScreen, "Home", BasicHeader)
},
...
VideoPlayer: {
screen: VideoPlayerScreen
},
TestYourself: {
screen: withHeader(TestYourselfScreen, "Test Yourself", DrawerHeader)
},
MyResults: {
screen: withHeader(MyResultsScreen, "My Results", DrawerHeader)
},
...
};
const AppNavigator = createDrawerNavigator(routes, config);
How can I open a screen outside of my drawer navigator?
I would like to open my VideoPlayer
screen in a Stack
rather than a Drawer
, as the Drawer stops my React-native-youtube
component from playing.
Any ideas?