答案 0 :(得分:3)
很可能你的StackNavigator里面有你的DrawerNavigator,如此
const stack = StackNavigator({
DrawerStack: {
screen: DrawerNavigator({
ScreenA: {
screen: ScreenA
}
})
}
})
您只需将DrawerNavigator移动到顶层,并使用嵌套的堆栈导航器,如下所示
const stack = DrawerNavigator({
ScreenA: {
screen: StackNavigator({
ScreenA: {
screen: ScreenA
}
})
}
})