Reputation: 1711
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:
Any ideas how o solve that?
Upvotes: 1
Views: 202
Reputation: 685
Try with this:
export const StackNavigatorInit = StackNavigator({
ScreenName: {
drawerLabel: 'Screen Name',
screen: ScreenName,
navigationOptions: {
header: null,
},
},
})
Upvotes: 1