Android Development FAQs

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.