Implement a StackNavigator that is nested in DrawerNavigator

My root of the native-native application is DrawerNavigator. I view each main screen using a drawer. On some screens, I also have buttons that lead me to some other internal screens. For this navigation I use StackNavigator. That is - I have a StackNavigator nested inside my DrawerNavigator. But when I go to some inner screen, I have a space at the top of the application, like this one: Application snapshot

Any ideas on how to solve this problem?

+6
source share
1 answer

Try the following:

export const StackNavigatorInit = StackNavigator({
    ScreenName: {
      drawerLabel: 'Screen Name',
      screen: ScreenName,
      navigationOptions: {
        header: null,
      },
    },
})
Run codeHide result
+1
source

All Articles