标签:
demo地址http://www.oschina.net/p/reactnative
http://my.oschina.net/luyongfugx/blog/394427#OSC_h1_1 翻译得很好
安装react native:按照官网 http://facebook.github.io/react-native/docs/getting-started.html
brew install node#安装node watchman flow brew install watchman#:遇到xz需要重新安装问题,于是brew install xz brew install flow sudo npm install -g react-native-cli#安装 react-native本身 mac需要sudo sudo react-native init AwesomeProject#输入命令建立工程
利用xcode打开当前目录的AwesomeProject
commond+r两次则可以运行
标签:
原文地址:http://www.cnblogs.com/jdhu/p/4401490.html