我正在尝试将堆栈导航嵌套在小吃博览会的抽屉导航中。我之前问过这个问题,并被告知要再做一次。我做了,仍然有错误。最初,我使用了一个类,所以我尝试使用一个函数代替。如果有人可以解释我做错了什么,我将不胜感激。如果有帮助,https://snack.expo.io/@andreeam/it-in-the-valley
也可以将链接发布到我的项目我得到的错误是
// Initialize your Web app as described in the Get started for Web
// firebaseApp previously initialized using firebase.initializeApp().
var db = firebaseApp.firestore();
if (location.hostname === "localhost") {
db.settings({
host: "localhost:8080",
ssl: false
});
}
谢谢
这是我的代码
Device: (0:0) Cannot assign to read only property 'exports' of object '#<Object>'
Evaluating module://react-native-screens.js
Evaluating module://@react-navigation/drawer.js
Evaluating module://App.js.js
Loading module://App.js
答案 0 :(得分:0)
已解决问题,请在此处查看小吃=> https://snack.expo.io/@mustafaskir/ee857b
只需更新package.json中的软件包,即可解决
这是我更新的软件包,我必须在acc中重新发布
"react-native-paper": "^3.10.1",
"react-native-screens": "^2.4.0",
"@react-navigation/stack": "^5.3.7",
"react-native-reanimated": "^1.8.0",
"@react-navigation/drawer": "^5.7.5",
"@react-navigation/native": "^5.4.0",
"react-native-safe-area-context": "^0.7.3",
"@react-native-community/masked-view": "^0.1.7"