02 2020 档案

摘要:https://www.devio.org/2016/07/23/React-Native应用部署-热更新-CodePush最新集成总结/ 集成: npm install -g code-push-cli code-push -v 向code-push服务器注册app code-push app a 阅读全文
posted @ 2020-02-28 11:07 liuw_flexi 阅读(362) 评论(0) 推荐(0) 编辑
摘要:1. 在全局路径下修改环境变量 vim ~/.bash_profile # Setting PATH for Python 3.6 # The original version is saved in .bash_profile.pysave PATH="/Library/Frameworks/Py 阅读全文
posted @ 2020-02-21 16:58 liuw_flexi 阅读(1928) 评论(0) 推荐(0) 编辑
摘要:#pragma mark 判断手机号码格式是否正确 + (BOOL)valiMobile:(NSString *)mobileNum { /** * 手机号码 * 移动:134[0-8],135,136,137,138,139,150,151,157,158,159,182,187,188 * 14 阅读全文
posted @ 2020-02-19 10:08 liuw_flexi 阅读(1017) 评论(0) 推荐(0) 编辑
摘要:有时候从App上传图片给后台,由于图片较大, 需要将图片压缩一下。 压缩的时候注意有的方案会卡线程,耗时。 这里有个方案:不耗时,不卡线程 -(UIImage *)makeThumbnailFromImage:(UIImage *)srcImage scale:(double)imageScale{ 阅读全文
posted @ 2020-02-18 12:49 liuw_flexi 阅读(342) 评论(0) 推荐(0) 编辑
摘要:使用系统自带Model 不能做到,因为官网讲了,只能有一个在最上层的Model 可以用 import Modal from 'react-native-modalbox'; 这个Model 可以设置coverScreen={true},弹出之后能覆盖全屏,隐藏了底部导航栏。这个功能是很实用的。 参考 阅读全文
posted @ 2020-02-18 12:45 liuw_flexi 阅读(699) 评论(0) 推荐(0) 编辑
摘要:https://www.jianshu.com/p/0d3cde0237e7 阅读全文
posted @ 2020-02-05 12:26 liuw_flexi 阅读(1105) 评论(0) 推荐(0) 编辑
摘要:在配置navigationOptions 时可以这样,设置标题和图片icon navigationOptions:{ tabBarLabel:(({tintColor,focused})=>{ return ( <View> <Text style={(item.label=='计划')?style 阅读全文
posted @ 2020-02-05 12:18 liuw_flexi 阅读(1037) 评论(0) 推荐(0) 编辑

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