但是,当我这样做时,它会给出错误消息:(0 , _native.createStackNavigator) is not a function 这是app.js: import Main from/components/Chat';import { createStackNavigator } from '@react-navigation/native'
// Create the navigato
我有一个抽屉导航,里面有一个Stack导航。我这样做的原因是因为我想要一个SinglePage和CommentPage,它们将在离开时卸载。我的主要导航是抽屉导航。对我来说问题是,如果我进入抽屉导航中的一个屏幕,然后从那里进入SinglePage (通过点击一篇文章),现在如果我返回,它会一直返回到主页,而不是上一页,也就是另一个抽屉导航页面。which is located in my project root folder
//Here is the Stack