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?
- 1 years ago
To resolve Unable to load script from assets index.android.bundle - React Native follow below process :
- You have to create dir
assetsmanually in your android project or make Directory by Terminal/CMD enter
- Go at the created Directory if that is successfully created then run step 3 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
- you have your missed files in the folder now you can Run your React Native project npm run android