-
Notifications
You must be signed in to change notification settings - Fork 0
React Native Notes
Chris edited this page Jan 27, 2018
·
1 revision
- Xcode needs to be installed.
- Node.js >= 4.5 needs to be installed.
- Install
watchmanvia Homebrew
brew install watchman- Install
react-nativeas a global package on the local system
npm install -g react-native-cliTo setup initial project / app, run the below command
react-native init kegcopr- Install Java SDK / JDK
- Install Node.js
- Install Python 2.x
- search for Android Studio download
- Install Android Studio
- Install
react-native
npm install -g react-native-cliBootstrap the project
react-native init <projec-name>Create an environment variable called JAVA_HOME
⚠️ theJAVA_HOMEis not required.
Add the Android platform-tools to the PATH
react-native run-iosThe app should also be able to run within Xcode,
Open ios/mr-fancy-pants.xcodeproj with Xcode
- To launch the app in the Simulator
Click the
Runbutton in the Xcode interface
To run the app on Android
react-native run-android
⚠️ Make sure the Android emulator is running already from Android Studio