Is it possible to have a react native app to automatically reload in the emulator once I edit the sources and the thing recompiles itself?
-
http://stackoverflow.com/questions/36933287/how-to-enable-live-reload-in-react-native-on-android/42571633#42571633 – itzmebibin Mar 14 '17 at 16:45
5 Answers
If you've created your project with react-native init
, then on the simulator, press cmd+ctrl+Z
or Hardware > Shake Gesture
and the Dev Menu will popup.
Just press Enable Live Reload
and Done! :D
EDIT : React Native team does now encourage to user Hot Reloading instead of Live Reload. More info about the difference between those two features here.

- 3,972
- 4
- 44
- 76

- 2,422
- 1
- 18
- 9
-
3
-
-
@Toolkit I think they moved it, now you have to go to the Dev Menu > Dev Settings and check "Auto reload on JS change" – Ingro Dec 01 '15 at 10:31
-
-
Is there a way to have this feature also when running the app on device ? I don't see that option in the dev menu. – Fidan Hakaj Sep 18 '16 at 12:39
-
Is there any ADB command that you can send to the device to reload? I don't like Hot reloading !! – vijayst Sep 03 '17 at 13:42
You can use hot-reload in the settings for your react native app to automatically reload. you can enable hot-reloading click the "Menu" button on the sidebar inside genymotion.

- 4,769
- 5
- 29
- 34
Hot Module Reloading (HMR) shipped with RN 0.22 a few days ago, which lets the simulator automatically reload a single screen or other module without reloading the entire app. It's enabled via the same CMD+D / CMD+CTRL+Z / Shake Gesture menu.

- 6,640
- 5
- 42
- 51
-
Good answer, keep it simple just press CMD + D on from your simulator. – ismnoiet Oct 06 '16 at 19:10
This is a huge workaround – but it is saving a lot of time and avoiding the frustration of not shaking correctly.
Also it covers the edge case of complete reloading the bundle, not only for live reloading or hot replacement.
We just throw new Error('Want to refresh?')
to prompt the error screen while in development, so we can hit RELOAD
on the bottom.
Beware of the dragons. This is not the most usual move.

- 6,477
- 7
- 41
- 75
use this command from the shell
adb shell input keyevent 82
to get dev menu on android real device.

- 235,170
- 19
- 170
- 241

- 11
- 2