Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SectionHeader don't stick on DualSectionList #2

Open
AlexisLeon opened this issue Feb 12, 2018 · 3 comments
Open

SectionHeader don't stick on DualSectionList #2

AlexisLeon opened this issue Feb 12, 2018 · 3 comments

Comments

@AlexisLeon
Copy link

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.
@sospedra
Copy link
Owner

I'll check tonight. Thanks for raising the issue ;)

@sospedra
Copy link
Owner

Can u provide an example?

@AlexisLeon
Copy link
Author

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" },
    ...
  ]}
/>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants