react-native-section-alphabet-list icon indicating copy to clipboard operation
react-native-section-alphabet-list copied to clipboard

how does getItemHeight work?

Open pierroo opened this issue 2 years ago • 1 comments

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 ?

pierroo avatar Sep 20 '23 10:09 pierroo

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

getItemHeight={() => 40}

also set the sectionHeaderHeight:

sectionHeaderHeight={44}

same issue on #65

simonho1025 avatar Jan 26 '24 03:01 simonho1025