首页 > 其他 > 详细

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

时间:2016-02-26 14:11:44      阅读:172      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!