前端

ReactNative Day1

2018-09-19  本文已影响38人  人魔七七

搭建开发环境

https://reactnative.cn/docs/getting-started/

对于一个移动端开发人员来说必备移动端开发环境了,还需要科学上网或者其他方法。

打开命令终端:

react-native init 自己项目名称
运行react-native run-ios 启动项目

错误调试

如果遇到类似https://github.com/facebook/react-native/issues/7308 这样的情况,建议直接打开自己的Xcode编译,遇到什么问题解决什么问题。

运行Xcode 报一个链接错误

'React/RCTEventEmitter.h' file not found

https://github.com/facebook/react-native/issues/20797 遇到这个问题 直接修复即可 参考 https://github.com/facebook/react-native/issues/21071

用VSCode 配置开发环境

https://www.jianshu.com/p/ddaacd14b036

试用了那么种开发环境感觉还是VSCode比较顺畅,谁用谁知道

参考链接:https://hacpai.com/article/1497235254333#-react-rctbundleurlprovider-h-file-not-found

上一篇 下一篇

猜你喜欢

热点阅读