运行RN项目
运行终端打开对应目录(windows下为cmd)
$ cd /Users/s/Downloads/react-native-nba-app-master/
npm有的时候下载很慢,大家可以翻墙,或者设置npm淘宝镜像
$ npm install -g cnpm --registry=https://registry.npm.taobao.org
1.第一步
npm install -g react-native-cli
2.安装
npm install
3.启动
react-native start
4.运行(新开一个终端运行测试下)
npm test