Tuesday 26 December 2017

unable to load scripts from assets 'index.android.bundle' on real device

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???

No comments:

Post a Comment

Extract error records while inserting into db table using JDBCIO apache beam in java

 I was inserting data into postgres db using apache beam pipeline. it works perfectly with JdbcIO write of apache beam library. But, now, i ...