Android emulator react native on mac hot reload

broken image

Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.Īs we did to handle the global install of Node.js packages, we will add a line to. Open the package and step through the install process. This will open a new Terminal with the title “Running Metro Bundler on port 8081.” Missing JDKĪt this point I got an error that I need to install the Java Developer Kit.

broken image

Npm install -g react react-native react-native-cli Build an Appįrom a command prompt, enter the following: Install the remaining tools using the following command: It is helpful to have certain packages installed “globally” but it is considered a bad practice to use sudo for this. Once started, the emulator should show the phone starting up. Once you have a device, click the green triangle to start the emulator. On the last page confirm the setup and click Finish. Select the Pie system image (downloading it if necessary).

broken image

Using the Configure menu at the bottom the welcome screen, open the SDK Manager.Ĭonfirm the SDK location (we will need this later) and that you have the Android 9.0 (Pie) SDK installed.Ĭlose the SDK Manager and open the AVD Manager (from the Configure menu on the Welcome screen).Ĭreate a new Virtual Device accepting the default device. Launch it and complete the install process using the provided wizard. Download Android Studio and copy to your Applications folder.