Hope this can save someone a headache. I got this error after updating my reactive version. Vaguely, it only appeared on the Android side.
My file structure has index.ios.js and index.android.js . Both contain code:
AppRegistry.registerComponent('App', () => App);
What I needed to do, in android/app/src/main/java/com/{projectName}/MainApplication.java , change index to index.android :
@Override protected String getJSMainModuleName() { return "index.android";
Then in app/build/build.gradle change entryFile from index.js to index.android.js
project.ext.react = [ entryFile: "index.android.js"
dcordz Feb 19 '18 at 20:43 2018-02-19 20:43
source share