Getting Started #

Getting Started  #reactnative

  • Click “Apply” to download and install the Android SDK and related build tools.
  • Android Studio installs the most recent Android SDK by default.
  • 1. Download and install Android Studio #
  • react – native init AwesomeProject cd AwesomeProject react – native run – android
  • If you’ve already installed Android Studio before, you can still install HAXM without performing a custom installation.

Welcome to React Native! This page will help you install React Native on
your system, so that you can build apps with it right away. If you already
have React Native installed, you can skip ahead to the
Tutorial.

@ReactGuru: Getting Started #reactnative

Welcome to React Native! This page will help you install React Native on your system, so that you can build apps with it right away. If you already have React Native installed, you can skip ahead to the Tutorial.

The instructions are a bit different depending on your development operating system, and whether you want to start developing for iOS or Android. If you want to develop for both iOS and Android, that’s fine – you just have to pick one to start with, since the setup is a bit different.

You will need Node.js, Watchman, the React Native command line interface, and Xcode.

You will need Node.js, Watchman, the React Native command line interface, and Android Studio.

You will need Node.js, the React Native command line interface, and Android Studio.

We recommend installing Node and Watchman using Homebrew. Run the following commands in a Terminal after installing Homebrew:

Watchman is a tool by Facebook for watching changes in the filesystem. It is highly recommended you install it for better performance.

Follow the installation instructions for your Linux distribution to install Node.js 4 or newer.

We recommend installing Node.js and Python2 via Chocolatey, a popular package manager for Windows. Open a Command Prompt as Administrator, then run:

You can find additional installation options on Node.js’s Downloads page.

Node.js comes with npm, which lets you install the React Native command line interface.

Node.js comes with npm, which lets you install the React Native command line interface.

Run the following command in a Terminal:

The easiest way to install Xcode is via the Mac App Store. Installing Xcode will also install the iOS Simulator and all the necessary tools to build your iOS app.

Setting up your development environment can be somewhat tedious if you’re new to Android development. If you’re already familiar with Android development, there are a few things you may need to configure. In either case, please make sure to carefully follow the next few steps.

Android Studio provides the Android SDK and AVD (emulator) required to run and test your React Native apps.

in a terminal to see what version you have, if any.

installation when running Android Studio for the first time. Make sure the boxes next to all of the following are checked:

Then, click “Next” to install all of these components.

If you’ve already installed Android Studio before, you can still install HAXM without performing a custom installation.

installation when running Android Studio for the first time. Make sure the boxes next to all of the following are checked:

Click “Next” to install all of these components, then configure VM acceleration on your system.

SDK. To install it, launch the SDK Manager, click on “Configure” in the “Welcome to Android Studio” screen.

The SDK Manager can also be found within the Android Studio “Preferences” menu, under Appearance & Behavior → System Settings → Android SDK.

entry, then make sure the following items are all checked:

is selected.

Finally, click “Apply” to download and install the Android SDK and related build tools.

environment variable to be set up.

(or equivalent) config file:

(or equivalent) config file:

if you did not install the Android SDK using Android Studio.

Go to Control Panel → System and Security → System → Change settings → Advanced System Settings → Environment variables → New, then enter the path to your Android SDK.

Restart the Command Prompt to apply the new environment variable.

if you did not install the Android SDK using Android Studio.

Follow the Watchman installation guide to compile and install Watchman from source.

Watchman is a tool by Facebook for watching changes in the filesystem. It is highly recommended you install it for better performance, but it’s alright to skip this if you find the process to be tedious.

You can see the list of available AVDs by opening the “AVD Manager” from within Android Studio. You can also run the following command in a terminal:

Once in the “AVD Manager”, select your AVD and click “Start…”.

Android Studio should have set up an Android Virtual Device for you during installation, but it is very common to run into an issue where Android Studio fails to install the AVD. You may follow the Android Studio User Guide to create a new AVD manually if needed.

inside the newly created folder.

You should see your new app running in the iOS Simulator shortly.

is just one way to run your app. You can also run it directly from within Xcode or Nuclide.

inside the newly created folder:

If everything is set up correctly, you should see your new app running in your AVD shortly.

is just one way to run your app – you can also run it directly from within Android Studio or Nuclide.

Now that you have successfully run the app, let’s modify it.

Congratulations! You’ve successfully run and modified your first React Native app.

inside the newly created folder to start the packager.

inside the same folder to launch the app on your AVD.

inside the newly created folder.

If everything is set up correctly, you should see your new app running in your Android emulator shortly.

Now that you have successfully run the app, let’s modify it.

Congratulations! You’ve successfully run and modified a React Native app.

Getting Started #