ReactNativeUtil icon indicating copy to clipboard operation
ReactNativeUtil copied to clipboard

Bundling `index.android.js` [development, non-minified] 0.0% (0/1), failed.

Open wuyunqiang opened this issue 7 years ago • 0 comments

项目升级错误: 我从0.46.4->0.51 报错如下: 0.46updateto0.51.png 解决: 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

wuyunqiang avatar Jan 04 '18 03:01 wuyunqiang