上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 29 下一页
摘要: #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 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 使用系统自带Model 不能做到,因为官网讲了,只能有一个在最上层的Model 可以用 import Modal from 'react-native-modalbox'; 这个Model 可以设置coverScreen={true},弹出之后能覆盖全屏,隐藏了底部导航栏。这个功能是很实用的。 参考 阅读全文
posted @ 2020-02-18 12:45 liuw_flexi 阅读(690) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/0d3cde0237e7 阅读全文
posted @ 2020-02-05 12:26 liuw_flexi 阅读(1095) 评论(0) 推荐(0) 编辑
摘要: 在配置navigationOptions 时可以这样,设置标题和图片icon navigationOptions:{ tabBarLabel:(({tintColor,focused})=>{ return ( <View> <Text style={(item.label=='计划')?style 阅读全文
posted @ 2020-02-05 12:18 liuw_flexi 阅读(1028) 评论(0) 推荐(0) 编辑
摘要: 来自:https://zhuanlan.zhihu.com/p/83291118 1.给RN项目添加 TypeScriptyarn add --dev typescript 或者 npm install typescript --save 2.给项目添加 react-native-typescrip 阅读全文
posted @ 2020-01-28 15:46 liuw_flexi 阅读(1803) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-01-19 16:19 liuw_flexi 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 这个还没来得及查资料,不过群里都说是Apple的规定。每次更新版本都必须要这个。 https://www.v2ex.com/t/519159 阅读全文
posted @ 2020-01-19 16:10 liuw_flexi 阅读(848) 评论(0) 推荐(0) 编辑
摘要: 1.rest and spread 操作符 2.generator函数 yield 3.析构表达式 4.箭头表达式 用来声明匿名函数,消除传统匿名函数的this指针问题var sum = (arg1,arg2) => arg1 + arg2; var sum = (arg1,arg2) => { r 阅读全文
posted @ 2020-01-19 16:03 liuw_flexi 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-01-19 16:00 liuw_flexi 阅读(92) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 29 下一页