![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ReactNative
wapchief
这个作者很懒,什么都没留下…
展开
-
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 · 5417 阅读 · 2 评论 -
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 · 881 阅读 · 0 评论 -
ReactNative run-android No such file or directory错误
错误示例:env: bash\r: No such file or directoryCould 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 haveset原创 2018-04-03 14:42:18 · 1274 阅读 · 0 评论 -
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 · 2113 阅读 · 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 · 1202 阅读 · 0 评论