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

how does getItemHeight work? #66

Open
pierroo opened this issue Sep 20, 2023 · 1 comment
Open

how does getItemHeight work? #66

pierroo opened this issue Sep 20, 2023 · 1 comment

Comments

@pierroo
Copy link

pierroo commented Sep 20, 2023

Can we have an example of how getItemHeight works?
the doc feels unclear to me;

if my section header is 44px
and each of my list items are 40px

what should I put in getItemHeight ?

@simonho1025
Copy link

Yes, the doc is unclear. You can return the number like this:

getItemHeight={() => 40}

also set the sectionHeaderHeight:

sectionHeaderHeight={44}

same issue on #65

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