react-native-scrollable-with-collapsible-header

1.0.3 • Public • Published

react-native-scrollable-with-collapsible-header

What is it?

A simple react-native component to associate a collapsible header to any scrollable animated component (ie: ScrollView, FlatList, SectionList).

Installation

npm install react-native-scrollable-with-collapsible-header

Usage

  <ScrollableWithCollapsibleHeader 
    headerComponent={() => {
      <MyHeaderComponent />
    }}
    headerHeight={50}
    listComponent={({style, onScroll, scrollEventThrottle}) => {
      <Animated.ScrollView style={style}, onScroll={onScroll}, scrollEventThrottle={scrollEventThrottle} />
    }}
  />

Readme

Keywords

Package Sidebar

Install

npm i react-native-scrollable-with-collapsible-header

Weekly Downloads

0

Version

1.0.3

License

Apache 2.0

Unpacked Size

14.7 kB

Total Files

4

Last publish

Collaborators

  • jgdoyon-nexapp
  • pluc_nexapp
  • mbergeron
  • tristanod
  • hsebouai-nexapp
  • sebdufbeau
  • gabsima-nexapp
  • drichard-nexapp