【发布时间】:2020-01-11 07:44:35
【问题描述】:
我有一个不使用 expo 的 react-native 应用程序。我收到以下错误:
React Native version mismatch.
│
│ JavaScript version: 0.57.7
│ Native version: 0.61.5
│
└ Make sure that you have rebuilt the native code. If the problem persists try clearing the Watchman and packager caches with `watchman watch-del-all && react-native start --reset-cache`.
我已经完成了this question中提到的所有事情 到目前为止没有任何效果。
我已将 react-native 版本更新为 0.61.5 。它已安装,并且在 package.json 中也提到了它。我还更新了 packages.json 中的所有包。
该项目还使用 react-navigation。在节点模块的@react-navigation 文件中,在native/package.json 文件中,"react-native": "^0.57.7" 是唯一在 devDependencies 下提到的地方。我已经安装了最新的 react-navigation,4.0.10。
【问题讨论】:
标签: android reactjs react-native react-navigation