1

When I change some code and then use react-native run-android, new changes do not appear in my application.

I search a little and found this code:

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/

but here is the thing: I see new changes, but I should do it every time. Is there any way to automate this process?

Arash Heidari
  • 71
  • 1
  • 9
  • Possible duplicate to this: https://stackoverflow.com/questions/48304116/react-native-run-android-do-not-updating-modified-code there you can find tricks for workaround. – Ujjwal Nepal Jun 10 '19 at 11:27

1 Answers1

0

You don't need to run this command everytime you change code.Just change the code shake the device and enable hot reloading and enable live reload.This will reload app everytime you make changes to app.If you are using ios simulator press command+R it will open reload window.

shruti garg
  • 332
  • 3
  • 12