前言
使用过react的小伙伴都会觉得react或者redux用起来很方便很好用,其实Native也是很非常棒的
就是这个(图片来自http://facebook.github.io/react-native/):
正文
#运行说明:
首先需要安装好运行React Native的相关环境,
首先需要安装好运行React Native的相关环境,
首先需要安装好运行React Native的相关环境,
#使用说明:
1.运行前,先关掉终端(可能终端开启了其他的service)
2.初始化工程:
运行工程,如果
报错: Unable to resolve module react-timer-mixin from ***
工程目录下执行:
npm i react-timer-mixin --save
然后关掉终端,重新运行
//这里需要执行一个命令,把包导入npm i react-timer-mixin –save
//var TimerMixin = require(‘react-timer-mixin’);
3.运行工程
打开RNMeituan目录,双击iOS/RNMeituan.xcodeproj 启动工程