I have created a react-native app and I have executed after lots of trials. But when i'm editing the content of the app. It is taking time or not updating the content what i have changed on App. Please could you help me on this.
-
are you using the state variables for changing the content?– Husain KhanbahadurCommented Oct 8, 2018 at 13:14
-
I have changed the code and tried to execute again, it didn't happen. because the changed code has to build bundler every time. It's not happened in windows.– VijayCommented Oct 16, 2018 at 9:21
Add a comment
|
1 Answer
I understand this issue is because of that bundler is not getting update every time. I have to update the bundle also before executing the react-native run-android command.
To update the build execute this below 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