![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ReactNative学习笔记
文章平均质量分 92
仲少
这个作者很懒,什么都没留下…
展开
-
react-native-camera安装错误
ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve project :react-native-camera.解决方案在android/app/build.gradle文件defaultConfig配置中添加missingDimensionStrategy 'react-native-camera', 'general',然后再编译即可defaultConfig { a原创 2020-07-09 11:15:51 · 875 阅读 · 2 评论 -
React-Native学习之第三方开源组件--侧滑栏----react-native-side-menu
react-native-side-menu 侧滑栏组件1.导入方式切换到当前目录在命令行执行下面的命令 npm install react-native-side-menu --save 打开package.json查看是否成功导入2.在js中导入import SideMenu from 'react-native-side-menu原创 2016-10-09 10:33:03 · 4849 阅读 · 1 评论 -
ReactNative----CodePush学习笔记
命令: add Add a new deployment to an app clear Clear the release history associated with a deployment remove Remove a deployment from an app rm Remove a deployment from an app...原创 2016-11-17 10:24:26 · 2172 阅读 · 0 评论 -
React Native ListView警告:in next release empty section headers ...
升级React Native到最新版本出现了一个Warning:Warning:In next release empty section headers will be rendered.In this release you can use 'enableEmptySections' flag to render empty section headers这个错误出现在ListV原创 2017-01-09 18:09:02 · 1741 阅读 · 0 评论 -
React-Native学习之 图片做背景 modal 点击其他区域消失
1.modal点击其他区域消失<TouchableWithoutFeedback onPress={()=>this.setState({showTopMenu:false})}> style={{position: 'absolute',left: 0,right: 0,top: 0,bottom: 0,width: null,}}/>2.图片做背景原创 2017-02-13 11:31:44 · 6462 阅读 · 0 评论 -
ReactNative修改第三方插件源码
当第三方插件源码修改后,必须重启服务.猜测,第三方插件在服务启动时会生成缓存.如果不重启无论如何修改代码,都不会产生影响——这个是经过测试的注意是重启服务,不是简单的cmd+R 刷新,也不是关闭应用重新打开,也不是点击XCode的按钮执行重新安装.必须npm start 或者react-native run-ios 或者关闭终端后在XCode中点击按钮重新安装原创 2017-03-13 10:21:21 · 1082 阅读 · 0 评论 -
CodePUsh回滚
按照RN中文网的文档配置CodePush执行code-push release-react <app名称> <平台(iso android window)>app当时可以更新到最新代码,但是重启后又回到上一版本,然后执行code-push deployment ls <app名称> -k 从服务器查看升级状态,可以看到rollbacks数量,刚升级的用户全部回滚了,demo代码片段如下 compon原创 2017-05-05 10:41:31 · 4275 阅读 · 1 评论 -
React-Native 新版本无法Debug问题
最近无聊+手残 升级rn到最新版本,然后出现了无法debug问题 具体症状表现为(index):94 Uncaught TypeError: Cannot set property 'volume' of null at Object.render ((index):94) at Object.setState ((index):48) at WebSocket.ws.o原创 2018-04-08 11:38:24 · 3857 阅读 · 6 评论