1.0.1 • Published 6 years ago

react-native-scrollable-with-collapsable-header v1.0.1

Weekly downloads
2
License
Apache 2.0
Repository
github
Last release
6 years ago

react-native-scrollable-with-collapsable-header

What is it?

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

Usage

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