Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cmd : react-native run-android on every file change

when I run "react-native run-android" The build is deployed to emulator and the program executes fine. But after I make changes to the files locally, I need to run "react-native run-android".

Any way this can be done using watchman, like it happens for react-native ios.

Thanks

like image 385
Kiba Avatar asked Sep 16 '15 15:09

Kiba


1 Answers

You have to enable live reloading.

According to the tutorial:

For Android, run react-native run-android from your projectto install the generated app on your emulator or device, and start the Node server which enables live code reloading. To see your changes you have to open the rage-shake-menu (either shake the device or press the menu button on devices, press F2 or Page Up for emulator, ⌘+M for Genymotion), and then press Reload JS.

like image 55
Chris Ghenea Avatar answered Nov 16 '22 01:11

Chris Ghenea