1.4 KiB
1.4 KiB
id | title | layout | category | permalink | next |
---|---|---|---|---|---|
getting-started | Getting Started | docs | Quick Start | docs/getting-started.html | tutorial |
Requirements
- OS X - This repo only contains the iOS (7+) implementation right now, and Xcode only runs on Mac.
- Xcode 6.3 or higher is recommended.
- Homebrew is the recommended way to install node, watchman, and flow.
brew install iojs && brew link iojs --force
. You may need to runbrew unlink node
if you have previously installed Node. New to io.js or npm?brew install watchman
. We recommend installing watchman, otherwise you might hit a node file watching bug.brew install flow
. If you want to use flow.
Quick start
npm install -g react-native-cli
react-native init AwesomeProject
In the newly created folder AwesomeProject/
- Open
AwesomeProject.xcodeproj
and hit run in Xcode. - Open
index.ios.js
in your text editor of choice and edit some lines. - Hit cmd+R in your iOS simulator to reload the app and see your change!
Congratulations! You've just successfully run and modified your first React Native app.
If you run into any issues getting started, see the troubleshooting page.