react-native init 初始化项目时,安装指定版本

React Native 2020-04-01 阅读 146 评论 0

使用 react-native init project_name 命令初始化一个 React Native 项目,默认是用了 React Native 的最新版,如果要指定一个旧的其他 React Native 版本,可以加上 --version ,如:

$ react-native init project_name --version 0.56.0
This will walk you through creating a new React Native project in /develop/project_name

将在当前目录下,创建一个名为 project_name 的项目文件夹。

最后更新 2020-04-01
MIP.watch('startSearch', function (newVal, oldVal) { if(newVal) { var keyword = MIP.getData('keyword'); console.log(keyword); // 替换当前历史记录,新增 MIP.viewer.open('/s/' + keyword, {replace: true}); setTimeout(function () { MIP.setData({startSearch: false}) }, 1000); } }); MIP.watch('goHome', function (newVal, oldVal) { MIP.viewer.open('/', {replace: false}); });