Paste this command in command prompt and run: when server start, open next terminal with same path as project pathīefore you copy and paste command in command propmt, make assets folder in project respective path.for example, you might want to remove it from here.īut it didn`t work.It still fetch the JS bundle from the server.įor offline bunduling of JS into android, first start the server in respective project path: Alternatively, if you have JS files in android/
indexes the entire tree), add them here. date if you have any other folders that you want to ignore for performance reasons (gradle that we don't look at files in android/ or ios/ to determine whether the tasks are up to by default the gradle tasks are skipped if none of the JS files or assets change this means ResourcesDirRelease: "$buildDir/intermediates/res/merged/release", require('./image.png')), in release mode ResourcesDirDebug: "$buildDir/intermediates/res/merged/debug", require('./image.png')), in debug mode where to put drawable resources / React Native assets, e.g. JsBundleDirRelease: "$buildDir/intermediates/assets/release", where to put the JS bundle asset in release mode JsBundleDirDebug: "$buildDir/intermediates/assets/debug", where to put the JS bundle asset in debug mode whether to bundle JS and assets in release mode whether to bundle JS and assets in debug mode the name of the generated asset file containing your JS bundle I didn`t see the document about use offline bundle on android.