这是我在git上的开源项目LegendShop,欢迎您Fork并一起分享,这里假设您已经使用OSX系统并且已经安装了React-Native 如果您还没有安装相关的环境,可以进入React-Native官网 学习,下面是安装本项目之前需要的准备工作:
-
cd LegendShop
-
npm install
-
启动LegendShop.xcodeproj并配置AppDelegate.m的jsCodeLocation的localhost
-
选择xcode模拟器,Build and Run
-
cd LegendShop
-
react-native run-andorid