项目
在 GitHub 查看
JungHsuan/react-native-collapsible-tabview
关于
This is only an implementation of tabview with collapsible header.
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- -1
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文React native collapsible tabview example
This is just a simple example implementing a tabview with collapsible header. Here we use react-native-tab-view in our implemetation.
Dependencies
2022-07
- Here I've upgraded
react-nativeto0.68.2,andreact-native-tab-viewto3.1.1. react-native-reanimatedandreact-native-gesture-handlerhave been removed byreact-native-tab-view.hermesis default enabled on bothiOSandAndroid.- No changes to example code.
- No furthur updates for old version.
2021-06
- Be noticed that we are using react-native
0.62.2in this example, some breaking changes may lead to crashes. - Accroding to this post,
getNode()is deprecated. As a result, before0.62.0you should useref.getNode()in order to get correctreffor theAnimatedcomponent.
Usage
There are three examples under src folder:
CollapsibleTabView: provides the most basic workable example without scrollable header and pull-to-refresh.HeaderScrollableTabView: provides scrollable header without pull-to-refresh.PullRefreshTabView: provides both scrollable header and pull-to-refresh.
It is critical to give the correct paddingTop and minHeight of contentContainerStyle of the FlatList
contentContainerStyle={{
...
paddingTop: HeaderHeight + TabBarHeight,
minHeight: windowHeight - SafeStatusBar + HeaderHeight,
}}
Demo
iOS
Android 
探索相关项目
加载中…