Setup React Native for iOS and Android

Jason Brown
InstructorJason Brown

Share this video with your friends

Send Tweet
Published 6 years ago
Updated 3 years ago

In this lesson we'll walk through the process of installing the react-native-cli through setting up a basic react-native project on iOS. We'll get the basic project running in a simulator via XCode. We'll also setup Android, Android Studio and get the project running on an emulator with the react-native run-android command.

Andres
Andres
~ 5 years ago

It'd be super nice to have the transcript of this course too. Cheers!!

IainW
IainW
~ 5 years ago

This needs to be revised as the android command has been deprecated and Android Studio configuration has change with the latest release.

Mário Rodrigues
Mário Rodrigues
~ 5 years ago

Plus one. I had to create a project in Android Studio to that I could access the AVD Manager.

Haiz
Haiz
~ 5 years ago

Please revise ASAP. The deprecated commands make this tutorial not particularly useful.

Emmet
Emmet
~ 5 years ago

android avd is simply not a command anymore - I'm sure this is a slight evolution but ever so frustrating that the entire tutorial is held up by this

Aswin
Aswin
~ 5 years ago

Standalone SDK manager option isnt available

Reload
Reload
~ 5 years ago

You can do the following to get the emulator up and running from the command line:

add to ~/.bash_profile

export PATH=$PATH:$ANDROID_HOME/tools/bin
source ~/.bash_profile
avdmanager create avd --force --name reactnative --abi google_apis/x86_64 --package 'system-images;android-23;google_apis;x86_64' --device "Nexus 6"

Apparently at the time of writing you have to execute emultar for the tools directory

cd "$(dirname "$(which emulator)")"
emulator @reactnative
Gerardo Palazuelos
Gerardo Palazuelos
~ 4 years ago

between this video and the React-Native docs, I was able to achieve this lecture goal... on my way! horay!