1.0.1 • Published 6 years ago
react-native-scrollable-with-collapsable-header v1.0.1
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} />
}}
/>