Install Library

If you have Homebrew installed, go to next step, else:
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 node
Install React Native CLI
$ npm install -g react-native-cli
Go to the project folder and install dependencies
$ cd PROJECT_DIR
$ npm install
Link native modules
$ react-native link
$ cd ios
$ pod install
Run Android app
Please connect android device or run emulator
$ react-native run-android
Run 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.
$ react-native run-ios
Last modified 3yr ago