Custom Sticky Header
Example usage
Check custom header example
Props
StickyHeaderScrollViewProps
Inherits ScrollViewProps and Shared StickyHeader props
StickyHeaderFlatListProps
Inherits FlatListProps and Shared StickyHeader props
StickyHeaderSectionListProps
Inherits SectionListProps and Shared StickyHeader props
Shared StickyHeader props
Prop | Type | Default value |
---|---|---|
containerStyle | style - StyleProp<ViewStyle> | - |
onHeaderLayout | function - (e: LayoutChangeEvent) => void | - |
onMomentumScrollBegin | worklet function - (e: NativeScrollEvent) => void | - |
onMomentumScrollEnd | worklet function - (e: NativeScrollEvent) => void | - |
onScroll | worklet function - (e: NativeScrollEvent) => void | - |
onScrollBeginDrag | worklet function - (e: NativeScrollEvent) => void | - |
onScrollEndDrag | worklet function - (e: NativeScrollEvent) => void | - |
onTabsLayout | function - (e: LayoutChangeEvent) => void | - |
renderHeader | render function | - |
renderTabs | render function | - |
stickyTabs | boolean | true |