Sabrina
Sabrina

Reputation: 1711

implement StackNavigator that is nested in DrawerNavigator

My react-native app root is a DrawerNavigator. I navigate to each main screen with the drawer. In some screens, I also have buttons leading me to some other inner screens. For this navigation, I use StackNavigator. That is - I have a StackNavigator nested inside of my DrawerNavigator. But when I navigate to some inner screen, I have a gap at the top of the app, like this one: App Snapshot

Any ideas how o solve that?

Upvotes: 1

Views: 202

Answers (1)

Tarik Fojnica
Tarik Fojnica

Reputation: 685

Try with this:

export const StackNavigatorInit = StackNavigator({
    ScreenName: {
      drawerLabel: 'Screen Name',
      screen: ScreenName,
      navigationOptions: {
        header: null,
      },
    },
})

Upvotes: 1

Related Questions