标签:
React Native enables you to build world-class application experiences on native platforms using a consistent developer experience based on JavaScript and React. The focus of React Native is on developer efficiency across all the platforms you care about — learn once, write anywhere. Facebook uses React Native in multiple production apps and will continue investing in React Native.
brew install iojs && brew link iojs --force
. You may need to run brew 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.npm install -g react-native-cli
react-native init AwesomeProject
In the newly created folder AwesomeProject/
AwesomeProject.xcodeproj
and hit run in Xcode.index.ios.js
in your text editor of choice and edit some lines.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.
Ref:http://facebook.github.io/react-native/
标签:
原文地址:http://www.cnblogs.com/ncore/p/4678924.html