react-native 0.46升級0.51報錯:Bundling `index.android.js` [development, non-minified] 0.0% (0/1), failed
如圖:
解決:
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.