自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 资源 (1)
  • 收藏
  • 关注

原创 React Native 结合ScrollableTab、RefreshControl和FlatList实现新闻分类列表

正好刚开始学RN,熟悉一下控件和基本使用。 涉及的知识点: 1、fetch网络请求,get 拼接参数,解析json。 2、ScrollableTabView、ScrollableTabBar 分类布局。 3、FlatList 数据列表。 4、Navigation 路由携带参数跳转。 5、下拉刷新,结合了 Tab 切换数据更新 需要导入到 RN 的第三方库: react-...

2018-04-18 15:34:55 1222

原创 React native react-native-scrollable-tab-view ScrollableTab 默认不显示指示器问题

在初始化过后可能会出现此问题,解决方案参考一位 GitHub 的 Issues需要修改ScrollableTabBar源码: 将this.updateView({value: this.props.scrollValue._value, }); 替换为: this.updateView({value: this.props.scrollValue.__getValue(), }); me

2018-04-16 11:04:34 890

原创 RN WebView Cannot Add a child that doesn’t have a YogaNode to a parent with out a measure function

解决方案1: 检查 return 方法内是否存在注释,如果有全部删除。 解决方案2: 如果使用了WebView,那么请删除外层的View视图,否则在Android上可能出现这种错误。 render() { const { params } = this.props.navigation.state; const title = params ? params.t...

2018-04-12 17:27:59 2119 1

原创 ReactNative run-android No such file or directory错误

错误示例:env: bash\r: No such file or directory Could not install the app on the device, read the error above for details. Make sure you have an Android emulator running or a device connected and have set

2018-04-03 14:42:18 1286

原创 ReactNative运行Could not install the app on the device, read the error above for details错误

Could not install the app on the device, read the error above for details. Make sure you have an Android emulator running or a device connected and have set up your Android development environment:

2018-04-02 17:53:52 5458 2

org.apache.http.legacy.jar

由于从ANDROID SDK从API LEVEL 23开始去掉了http相关特性,所以在用API LEVEL 23以上ANDROID SDK版本进行编译时,需要增加对org.apache.http.legacy.jar的引用

2017-10-20

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除