Question Detail

I have to create a new project of React Native to start development I am the success to import the start project but when I try to run react native project its give me an error Unable to load script from assets index.android.bundle and I have searched in the whole project I don't have any file with the name index.android.bundle How can I resolve this issue?


Thread Reply

alex levine

- 2 months ago

To resolve Unable to load script from assets index.android.bundle - React Native follow below process :

  1. You have to create dir assets manually in your android project or make Directory by Terminal/CMD enter mkdir android/app/src/main/assets
  2. Go at the created Directory if that is successfully created then run step 3 Command
  3. 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
  4. you have your missed files in the folder now you can Run your React Native project npm run android