react native学习1-安装,执行

demo地址 http://www.oschina.net/p/reactnative

http://my.oschina.net/luyongfugx/blog/394427#OSC_h1_1 翻译得很好

深入浅出react native http://www.cocoachina.com/ios/20150408/11513.html

安装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两次则可以运行
posted @ 2015-04-08 09:16  yo胡yo  阅读(305)  评论(0编辑  收藏  举报