The specified version is OK.
Path: Android/app/build.gradle
Compile ("Com.facebook.react:react-native: Fill in your own RN version") {force = true}
This question look at your RN version of the new version no index.android.js the old have this
Old version Workaround
1. First manually create a assets folder under Main
2. Then cmd goes into the project's root directory to execute:
React-native bundle --platform Android --dev false--entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
3. In the implementation of React-native run-android;
The new version
React-NativeBundle--PlatformAndroid--Devfalse -- Entry-file indexjs -- Bundle-output android/app/src/ Main/assets/index. Android. Bundle --assets-dest android/app/src/main/res/
Note that the new version is compiled index.js instead of Index.android.js, because react-native new version has no index.android.js and index.ios.js two files, only one index.js file, So to compile Index.js
Will find two more files under the Assets folder
Index. Android. Bundle index. Android. Bundle. Meta
This._lazycallablemodules[e] is not a function. (In ' this._lazycallablemodules[e] () ', ' this._lazycallablemodules[e] ' is undefined)
Open Engineering Search with Xcode Rctrootview enter. m file
Search [selfbundlefinishedloading: ([_bridgebatchedbridge]?: _bridge)];
Change into
if (!_bridge.loading)
{
[Selfbundlefinishedloading: ([_bridgebatchedbridge]?: _bridge)];
}
Android Development FAQs