繁体   English   中英

它已更新,但它说请更新 @react-navigation/bottom-tabs、@react-navigation/stack 和 @react-navigation/drawer 到 5.10.0 或更高版本

[英]It is updated but it say Pleaseupdate @react-navigation/bottom-tabs, @react-navigation/stack and @react-navigation/drawer to version 5.10.0 or above

我是 react-native 的新手。 我正在尝试使用 expo 运行程序,但出现此黄色错误

'看来您使用的是旧版本的 react-navigation 库。 请将@react-navigation/bottom-tabs、@react-navigation/stack 和@react-navigation/drawer 更新到 5.10.0 或更高版本,以充分利用添加到 react-native-screens 的新功能

这是我的 package.json 文件。 我不知道为什么,但我可以在这里看到它,但不知何故它无法通过程序看到。

 { "main": "node_modules/expo/AppEntry.js", "scripts": { "start": "expo start", "android": "expo start --android", "ios": "expo start --ios", "web": "expo start --web", "eject": "expo eject" }, "dependencies": { "@react-native-community/masked-view": "^0.1.11", "@react-navigation/bottom-tabs": "^6.0.9", "@react-navigation/drawer": "^6.1.8", "@react-navigation/native": "^6.0.6", "@react-navigation/stack": "^6.0.11", "expo": "^43.0.0", "expo-app-loading": "~1.2.1", "react": "17.0.1", "react-dom": "17.0.1", "react-native": "0.64.2", "react-native-gesture-handler": "~1.10.2", "react-native-reanimated": "~2.2.0", "react-native-safe-area-context": "3.3.2", "react-native-screens": "~3.8.0", "react-native-web": "0.17.1", "react-navigation": "^3.13.0", "react-navigation-drawer": "^2.7.1", "react-navigation-stack": "^2.10.4" }, "devDependencies": { "babel-preset-expo": "8.5.1" }, "private": true }

我该怎么办?

尝试卸载这些模块并重新安装。

或者尝试添加具有特定版本的那些模块。 就像npm i @react-navigation/drawer@5.10.0

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM