When I was runing below run-android then, I was getting unable to load script from asset error on emulator as shown below:
sachin@sachin-E470:~/react-native/test1$ react-native run-android
Then, I ran below commands,
sachin@sachin-E470:~/react-native/test1$ mkdir android/app/src/main/assets
sachin@sachin-E470:~/react-native/test1$ 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
sachin@sachin-E470:~/react-native/test1$ react-native run-android
Below is the result screenshot.
But, Now problem is, when I am changing App.js, changes are not reflecting in emulator device.
Any help for the same???
sachin@sachin-E470:~/react-native/test1$ react-native run-android
Then, I ran below commands,
sachin@sachin-E470:~/react-native/test1$ mkdir android/app/src/main/assets
sachin@sachin-E470:~/react-native/test1$ 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
sachin@sachin-E470:~/react-native/test1$ react-native run-android
Below is the result screenshot.
But, Now problem is, when I am changing App.js, changes are not reflecting in emulator device.
Any help for the same???
No comments:
Post a Comment