- 博客(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
2017-10-20
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人