RN版本0.55.2出现" React Native版本不匹配"

时间:2018-04-17 08:24:16

标签: react-native

this is error pic

我希望将原生反应本机应用到现有应用中。我已经https://facebook.github.io/react-native/docs/integration-with-existing-apps.html完成了任何事情,但是当我使用Xcode运行本机应用程序时,结果是

  

[error] [tid:com.facebook.react.JavaScript] React Native version mismatch。

我尝试用谷歌解决它,但我无法做到!

环境:

leecodeMacBook-Pro-5:MyApp wj$ react-native info
    Scanning folders for symlinks in /Users/wj/workspace/demo/MyApp/node_modules (10ms)
    OS: macOS High Sierra 10.13.3
Node: 9.11.1
Yarn: 1.5.1
npm: 5.6.0
Watchman: 4.9.0
Xcode: Xcode 9.3 Build version 9E145
Android Studio: 3.0 AI-171.4443003

Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: ^0.55.2 => 0.55.2

1 个答案:

答案 0 :(得分:0)

如果您尝试升级RN,是否遵循了更新指南? https://facebook.github.io/react-native/docs/upgrading.html

如果您这样做并仍然看到错误

你尝试清除缓存吗?

https://gist.github.com/jarretmoses/c2e4786fd342b3444f3bc6beff32098d