RN环境安装

2017-09-01  本文已影响38人  perfect_jimmy
$ brew install node
查看版本:
node -v
npm -v

或者官网下载:

Node.js was installed at

   /usr/local/bin/node

npm was installed at

   /usr/local/bin/npm

Make sure that /usr/local/bin is in your $PATH.
brew install watchman
查看版本:
watchman -v
brew install flow
npm install -g react-native-cli

创建项目
react-native init helloword

运行项目
进入项目根目录:cd helloword
运行IOS的命令:react-native run-ios

上一篇 下一篇

猜你喜欢

热点阅读