React Native version mismatch.

报错信息:
 

官方issue:
https://github.com/facebook/react-native/issues/16762

各种方法我都试了,最后还重新init一个项目还是报错

后来找到这个方法:
https://qiita.com/nitaking/items/8e533b2e8e9a54b610e6

android:
adndroid/app/build.gradle 修改 dependencies 这一项:改成你js对应的版本,就是当前项目目录下运行react-native -v出来的那个版本

dependencies {
 ...
   compile ("com.facebook.react:react-native:0.52.0") { force = true }
 ...
}

iOS我没接触,方法类似,找对应配置文件将react-native改成指定版本;

原文地址:https://www.cnblogs.com/Happymoney/p/9044765.html