码迷,mamicode.com
首页 > 其他好文 > 详细

React-Native hello word 搭建及新手常见问题

时间:2016-02-26 14:13:35      阅读:148      评论:0      收藏:0      [点我收藏+]

标签:

参考文档:http://reactnative.cn/docs/0.20/getting-started.html

 

cmd 打开 敲入

1、

npm config set registry 技术分享https://registry.npm.taobao.org
npm config set disturl 技术分享https://npm.taobao.org/dist 
 
2、npm install -g react-native-cli
 
3、 cmd 中切换到指定的项目路径
    react-native init AwesomeProject
 
4、
 启动服务:  react-native start
运行程序:  react-native run-android 
问题:
  找不到 sdk
  参考:http://blog.csdn.net/hpli148/article/details/7580055
技术分享
 
 
 找不到设备: 
   设备是否插入,是否认到
技术分享
 编译运行超时:http://reactnative.cn/docs/0.20/linux-windows-support.html#content
   如果你碰到了ERROR Watcher took too long to load的报错,请尝试将MAX_WAIT_TIME值改得更大一些 (文件的具体路径是node_modules\react-native\packager\react-packager\src\DependencyResolver\FileWatcher\index.jsnode_modules/react-native/packager/react-packager/src/FileWatcher/index.js)。
技术分享
技术分享

React-Native hello word 搭建及新手常见问题

标签:

原文地址:http://www.cnblogs.com/itclw/p/5220059.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!