Install Libs
If you have Homebrew installed, go to next step, else:
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"Install node
$ brew install nodeInstall React Native CLI
$ npm install -g react-native-cliGo to the project folder and install dependencies
$ cd PROJECT_DIR
$ npm installInstall Android SDK http://www.androiddocs.com/sdk/installing/index.html
Set ANROID_HOME on MAC https://stackoverflow.com/questions/19986214/setting-android-home-enviromental-variable-on-mac-os-x
Set ANDROID_HOME on Windows https://www.360logica.com/blog/how-to-set-path-environmental-variable-for-sdk-in-windows/
Run Android app
$ react-native run-androidRun iOS app
It appears to be a problem with the location of Command line tools. In Xcode, select Xcode menu, then Preferences, then Locations tab. Select your Xcode version from the dropdown and exit Xcode.

Last updated
Was this helpful?