I am running $react-native run-android. it is working properly, also, I am able to see the changes on android emulator. I have created 3 components and also tested it on android device.
But now, suddenly, it is asking me unable to load script from assets 'index.android.bundle' Also, I have reverted the changes and started but still I am seeing this error.
After serching on internet, I performed, 1. npm start 2. react-native start 3. adb kill-server and adb start-server but all in vein.
Last, I found and performed below commands, $ mkdir android/app/src/main/assets $ 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 $ react-native run-android
I am able to resolve above error with above commands, but now, when I am changing App.js file, it is not getting reflected on emulator. please help.
My steps performed: http://sachin4java.blogspot.in/2017/12/unable-to-load-scripts-from-assets.html
react-native start --reset-cache
– Kraylog--dev false
app on your emulator. Try uninstalling it before runningreact-native run-android
– Kraylogbundle
command you typed. Uninstall the app -adb uninstall your.package.name
and thenrun-android
again. – Kraylog