- 博客(14)
- 收藏
- 关注
翻译 利用uiwebview显示GIF动图,并且使其显示全面
// 设定位置和大小CGRect frame = CGRectMake(50,[[UIApplication sharedApplication] statusBarFrame].size.height+44+height(120),200,200); // view生成 UIWebView *webView = [[UIWebView alloc] initWithFrame:fra...
2018-05-28 09:02:09 1195 1
翻译 iOS开发 如何创建视频缩略图以及如何让缩略图动起来
搜的资料,只为加深,不喜勿喷。 NSString *path = @"xxxxxxxxxxxxxxx";//加载视频地址 MPMoviePlayerController *iosMPMovie = [[MPMoviePlayerController alloc] initWithContentUR...
2018-05-18 08:49:27 751
翻译 react-native Attribute meta-data#android.support.VERSION@value value=(25.3.0) from ...问题
针对以下两个错误 java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/animation/AnimatorCompatHelper 和 Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(25...
2018-04-28 10:55:37 1868 1
翻译 React Native Could not expand ZIP
当遇上Execution failed for task ':folioreader:mergeReleaseAssets'.> java.io.IOException: Could not delete path ''删除添加还有expand时,只需要清理一下就可以:cd android gradlew clean //注意你是powershell还是cmd 如果是cmd那么你需要用...
2018-04-27 08:47:15 879 1
原创 RN中有没有接触过字体样式不一样的时候,很简单就可以搞定
灵感来源于群友+百度 百度连接http://www.hangge.com/blog/cache/detail_1486.htmlView style={[styles.flex, styles.container]}> Text style={styles.welcome}> 欢迎访问 Imagesource={image} style
2017-12-06 14:01:26 1005
转载 RN导入高德地图定位的用法实例
转载自:[译]React Native开源高德地图定位组件(react-native-amap-location) -江清清的技术专栏1.NPM install1npm install relocation --save 2.更新Gradle 设置12345//
2017-12-04 09:29:00 2838
原创 关于<TabNavigator>的item的一些用法 例如传递navigation
_renderTab(Component,selectedTab,title, renderIcon,selectedIcon,position) { return ( TabNavigator.Item //设置选中的位置 selected={this.state.selectedTab=== se
2017-12-01 17:26:55 1159
原创 关于RN中FlatList的一些东西,以及FlatList为什么会得到多个只显示几个信息的原因
FlatList keyExtractor={ (item,index)=>item.title }//加上这句话后可以少item中key缺失警告, 而且这个title会产生唯一性,不可重复, 如果在得到的json字符串中有多个重复,请修改成没有重复的那个key sh
2017-12-01 17:00:39 3286
原创 关于RN中 props的父与子试图的一些简单用法
声明一个顶部导航栏ViewViewstyle = {styles.container}> Viewstyle = {{flex:1}}>View> Viewstyle = {{flex:1,flexDirection:'row'}}> Views
2017-12-01 16:50:46 392
原创 调用系统的打电话,发短信,系统浏览器,发送邮件的功能
导入linking库 然后在调用的方法里面+renderSystem = (url)=> { Linking.canOpenURL(url).then(supported=> { if (!supported) { console.log('Can\'t handl
2017-12-01 16:37:21 371
转载 RN好用的一个第三方
https://github.com/rilyu/teaset/blob/master/docs/cn/README.md
2017-12-01 14:29:29 2185
转载 RN中,你还在担心怎么传Json文件给服务器?来看看Json内容吧
http://www.cnblogs.com/damonlan/archive/2012/03/13/2394787.html 写的很好的一篇文章,这篇文章给了启发,写的Json格式的参数;
2017-10-12 15:16:07 1482
翻译 RN中的navigation的使用方式 demo
在终端中下载下来相关联的依赖库npm install react-navigation --save 运行时npm install导入头 然后看代码/** index.android.js* Sample React Native App* https://github.com/facebook/react-native* @flow*/
2017-09-12 16:12:57 1614
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人