Skip to content

Indexed unbundling is not working but file based unbundling is working.[React Native Android] #21272

Closed
@vivek-walecha-657-zz

Description

@vivek-walecha-657-zz

Indexed unbundling:

  • command
    "react-native unbundle --platform android --dev false --entry-file index.android.js --bundle-output ../src/main/assets/index.android.bundle --assets-dest ../src/main/res/ --indexed-unbundle --config ../../../../packager/config.js"

Create a single file which is stripped down version of typical bundle. But app crashes on loading react view with this bundle.

  • crash log
    Could not get BatchedBridge, make sure your bundle is packaged properly” on start of app

File based unbundling

  • command
    "react-native unbundle --platform android --dev false --entry-file index.android.js --bundle-output ../src/main/assets/index.android.bundle --assets-dest ../src/main/res/ --config ../../../../packager/config.js"

  • No Crash but creates index.android.bundle file of 16KB and create supporting patches of all the js code base in folder js-modules.

If i use this files based unbundling with code push will it work? or is there any way.

Thanx in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Platform: AndroidAndroid applications.Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.Tech: Bundler 📦This issue is related to the bundler (Metro, Haul, etc) used.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions