Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reload in the default Android emulator for react native app

I am using default Android emulator for running react native apps, I need to reload the app frequently, how do I do that?

And how can I set genymotion to set as default emulator for app running?

like image 746
rajat44 Avatar asked Jun 26 '16 14:06

rajat44


People also ask

How do I enable live reload react?

First, run the app using react-native run-android on Terminal. Now, shake the Android device which has the running app. Then select the Enable Hot Reloading or Enable Live Reload option from the popup.

Which emulator is best for React Native?

React Native recommends the Genymotion emulator out of the box. For many developers (and corporations), the price tag on Genymotion is not worth the expense. We'll be using the free Android Studio emulator for this walkthrough.


1 Answers

For android one can use CTRL + R
For apple one can use R + R (two times R).

For developers options:
One can also use the Command⌘ + D keyboard shortcut when your app is running in the iPhone Simulator, or Command⌘ + M when running in an Android emulator.

like image 81
rajat44 Avatar answered Oct 16 '22 21:10

rajat44