Install Libs
If you have Homebrew installed, go to next step, else:
1
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Copied!
Install node
1
$ brew install node
Copied!
Install React Native CLI
1
$ npm install -g react-native-cli
Copied!
Go to the project folder and install dependencies
1
$ cd PROJECT_DIR
2
$ npm install
Copied!
Link native modules
1
$ react-native link
2
$ cd ios
3
$ pod install
Copied!
Run Android app
Please connect android device or run emulator
1
$ react-native run-android
Copied!
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.
1
$ react-native run-ios
Copied!
​
Last modified 2yr ago
Copy link