随笔 - 632  文章 - 17  评论 - 54  阅读 - 92万

随笔分类 -  react native

FAILURE: Build failed with an exception.
摘要:FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:installDebug'. > com.android.builder.testing.api.DeviceExc 阅读全文
posted @ 2016-12-14 22:14 飘杨...... 阅读(10378) 评论(0) 推荐(0) 编辑
There is an internal error in the React performance measurement code.Did not expect componentDidMount timer to start while render timer is still in progress for another instance
摘要:一、There is an internal error in the React performance measurement code.Did not expect componentDidMount timer to start while render timer is still in 阅读全文
posted @ 2016-12-10 18:11 飘杨...... 阅读(771) 评论(0) 推荐(0) 编辑
react native TypeError network request failed
摘要:react native TypeError network request failed 异常出现的原因:由IOS9引入的新特性造成的。iOS9引入了App Transport Security (ATS)。这个新特性要求App内部访问网络必须使用Https协议。而我的项目使用的是Htttp协议。 阅读全文
posted @ 2016-12-10 18:01 飘杨...... 阅读(885) 评论(0) 推荐(0) 编辑
react-native Unrecognized font family ‘Lonicons’;
摘要:在使用:react-native-vector-icons库时报的错。 解决办法:使用这个库时android和ios工程目录中需要做些配置 配制方法如下: http://www.cnblogs.com/moxiaoyan33/p/5482024.html 阅读全文
posted @ 2016-09-23 17:20 飘杨...... 阅读(1516) 评论(0) 推荐(0) 编辑
react-native SyntaxError xxxxx/xx.js:Unexpected token (23:24)
摘要:在运行react-native项目时提示 SyntaxError xxxxx/xx.js:Unexpected token (23:24) 我这边的问题原因:jsx语法错误,解决办法就是认真排查代码然后修复。 阅读全文
posted @ 2016-09-23 17:09 飘杨...... 阅读(628) 评论(0) 推荐(0) 编辑
Application MyTest has not been registered. This is either due to a require() error during initialization or failure to call AppRegistry.registerComponent.
摘要:运行react-native项目时报错。 说明一下:项目本来是好的,再次运行就报错了 解决解决办法倒是有,不过具体什么原因不知道。希望有知道具体原因的童鞋能够补充一下 第一种情况:真的是注册的时候写错了。也就是这段话注册的不对: 注意:‘MyDemo’这个是项目名 MyDemo这个你可以随自己你喜好 阅读全文
posted @ 2016-09-18 01:39 飘杨...... 阅读(2625) 评论(0) 推荐(0) 编辑
npm命令总结
摘要:统一切换到项目目录 安装redux :npm install -save redux 安装react-redux : npm install -save react-redux 阅读全文
posted @ 2016-09-18 00:26 飘杨...... 阅读(126) 评论(0) 推荐(0) 编辑
-bash: /usr/local/bin/react-native: No such file or directory
摘要:执行react-native run-android/run-ios的时候出现 -bash: /usr/local/bin/react-native: No such file or directory 解释一下出现问题的大背景:本来这个命令是能运行的,只因为我再网上下载了一个开源的react-na 阅读全文
posted @ 2016-09-13 12:02 飘杨...... 阅读(926) 评论(0) 推荐(0) 编辑
Could not get BatchedBridge, make sure your bundle is packaged correctly
摘要:react-native 运行android项目的时候运行成功但是模拟器上会提示: Could not get BatchedBridge, make sure your bundle is packaged correctly 这个错误,到时不能正常运行。 在百度上搜索了这两篇文章 http:// 阅读全文
posted @ 2016-09-12 13:59 飘杨...... 阅读(6106) 评论(0) 推荐(0) 编辑
使用webstrom开发react-native时react-native代码会出现红色下划线的解决方法
摘要:问题:使用webstrom开发react-native时react-native代码会出现红色下划线的解决方法 解决方法:webstrom ->preferences->Laugranges&Frameworks->javascript->选择JSXHarmony 阅读全文
posted @ 2016-09-09 11:55 飘杨...... 阅读(2118) 评论(0) 推荐(0) 编辑

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

点击右上角即可分享
微信分享提示