Monday, February 11, 2019

Solved: Unable to load script from assets ‘index.android.bundle’

Unable to load script from assets ‘index.android.bundle’






Step 1. Go to your project directory and check if this folder exists android/app/src/main/assets

Note => assets available or not

Step 2. If the folder assets doesn’t exist then create the assets directory there.

like that In my case







Step - 3

Finally, Back to the project directory and run the below command

react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res


Thanks:)



No comments:

Post a Comment