All Projects → JungHsuan → react-native-collapsible-tabview

JungHsuan / react-native-collapsible-tabview

Licence: MIT license
This is only an implementation of tabview with collapsible header.

Programming Languages

javascript
184084 projects - #8 most used programming language
java
68154 projects - #9 most used programming language
objective c
16641 projects - #2 most used programming language
Starlark
911 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to react-native-collapsible-tabview

React Collapsing Table
react-collapsing-table: a React rewrite of the jQuery table plugin from "datatables.net". Inspired by a lack of similar table behaviors, notably collapsibility and responsivity.
Stars: ✭ 21 (-88.27%)
Mutual labels:  collapsible
Campcotcollectionview
Collapse and expand UICollectionView sections with one method call.
Stars: ✭ 161 (-10.06%)
Mutual labels:  collapsible
react-collapse
Component-wrapper for collapse animation with CSS for elements with variable and dynamic height
Stars: ✭ 143 (-20.11%)
Mutual labels:  collapsible
React Native Collapsible Toolbar
Pure JS based collapsible toolbar for react native on Android and iOS
Stars: ✭ 50 (-72.07%)
Mutual labels:  collapsible
Luexpandabletableview
A subclass of UITableView with expandable and collapsible sections
Stars: ✭ 125 (-30.17%)
Mutual labels:  collapsible
Expandableview
Expandable view for Xamarin.Forms
Stars: ✭ 178 (-0.56%)
Mutual labels:  collapsible
Ynexpandablecell
✨ Awesome expandable, collapsible tableview cell for iOS written in Swift 4
Stars: ✭ 445 (+148.6%)
Mutual labels:  collapsible
react-slide-toggle
React component re-implementation for jQuery.slideToggle feature
Stars: ✭ 42 (-76.54%)
Mutual labels:  collapsible
Abexpandableview
Expandable, collapsible, filterable and single/multi selectable table view.
Stars: ✭ 138 (-22.91%)
Mutual labels:  collapsible
flutter page tracker
flutter埋点、弹窗埋点、页面埋点事件捕获框架,支持普通页面的页面曝光事件(PageView),页面离开事件(PageExit)。支持在TabView和PageView组件中发送页面曝光和页面离开
Stars: ✭ 103 (-42.46%)
Mutual labels:  tabview
Stickytabbarviewcontroller
Sticky and Collapsible View on top of tab bar
Stars: ✭ 82 (-54.19%)
Mutual labels:  collapsible
React Native Collapsible Header Views
ScrollView, FlatList, SectionList with collapsible headers + HOC for wrapping custom scrollables
Stars: ✭ 120 (-32.96%)
Mutual labels:  collapsible
Swiftycomments
UITableView based component designed to display a hierarchy of expandable/foldable comments.
Stars: ✭ 200 (+11.73%)
Mutual labels:  collapsible
Octopatcher
Arrgh Some Patchy Goodness to GitHub!
Stars: ✭ 49 (-72.63%)
Mutual labels:  collapsible
react-native-collapsible
Fully customizable collapsible views
Stars: ✭ 31 (-82.68%)
Mutual labels:  collapsible
Expandablecell
✨ Awesome expandable, collapsible tableview cell for iOS written in Swift 5
Stars: ✭ 559 (+212.29%)
Mutual labels:  collapsible
React Native Collapsible
Animated collapsible component for React Native, good for accordions, toggles etc
Stars: ✭ 2,178 (+1116.76%)
Mutual labels:  collapsible
Xamarin.Forms.TabView
The TabView is a Xamarin.Forms control to display a set of tabs and their respective content.
Stars: ✭ 56 (-68.72%)
Mutual labels:  tabview
react-native-scrollable-tabview
Based on pure JS scripts, without relying on native, no need for react-native link, Title / Header / Tabs / Sticky / Screen components can be flexibly configured, among which Tabs / Sticky can slide When it reaches the top, it will be topped.
Stars: ✭ 136 (-24.02%)
Mutual labels:  tabview
React Sanfona
Accessible react accordion component
Stars: ✭ 248 (+38.55%)
Mutual labels:  collapsible

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-native to 0.68.2 ,and react-native-tab-view to 3.1.1.
  • react-native-reanimated and react-native-gesture-handler have been removed by react-native-tab-view.
  • hermes is default enabled on both iOS and Android.
  • No changes to example code.
  • No furthur updates for old version.

2021-06

  • Be noticed that we are using react-native 0.62.2 in this example, some breaking changes may lead to crashes.
  • Accroding to this post, getNode() is deprecated. As a result, before 0.62.0 you should use ref.getNode() in order to get correct ref for the Animated component.

Usage

There are three examples under src folder:

  1. CollapsibleTabView: provides the most basic workable example without scrollable header and pull-to-refresh.
  2. HeaderScrollableTabView: provides scrollable header without pull-to-refresh.
  3. 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 ios Android Android

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].