Question Detail

Unable to load script from assets - React Native

3 years ago Views 1228 Visit Post Reply

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 and I have searched in the whole project I don't have any file with the name How can I resolve this issue?

Thread Reply

alex levine

- 3 years ago

To resolve Unable to load script from assets - 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/ --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