项目升级错误: 我从0.46.4->0.51 报错如下:  解决: 1:android /app/build.gradle 添加如下: ``` project.ext.react = [ entryFile: "index.js" ] ``` 2:在MainApplication里面 ``` @Override protected String getJSMainModuleName() { return "index"; } ``` 3:修改index.ios.js&&index.android.ios->index.js 将这两个文件合并一个命名index.js. 参考:https://github.com/facebook/react-native/issues/16517
Activity