react-native-dual
react-native-dual copied to clipboard
SectionHeader don't stick on DualSectionList
The renderSectionHeader element isn't sticking to top on scroll for the <DualSectionList /> component.
I think this is related to contentInset and contentOffset.
- Tested on iOS.
I'll check tonight. Thanks for raising the issue ;)
Can u provide an example?
Example:
const MyCustomHeader = ({ title }) => (<View style={...}><Text>{title}</Text></View>);
<DualSectionList
stickySectionHeadersEnabled
renderItem={({item}) => <Text>{item}</Text>}
renderSectionHeader={({ section: { title } }) => <MyCustomHeader title={title} />}
sections={[
{data: [ ... ], title: "Section 1" },
...
]}
/>