You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When rendering a SectionList and passing a gap to contentContainerStyle, then extra gaps are added for section header and footer even if they are not being rendered.
Description
When rendering a SectionList and passing a
gap
to contentContainerStyle, then extra gaps are added for section header and footer even if they are not being rendered.For example, given the following app:
Then it would render:
Now if we remove the renderSectionFooter to become:
Then this will render(notice the gap between Risotto and Sides, there is twice the space as if there is a footer):
Now if we also remove the header to have the component be:
Which renders(notice how there are 3 gaps now between Risotto and French Fries, as if the footer and header are accounted for):
React Native Version
0.72.4
Output of
npx react-native info
Steps to reproduce
Run the provided snack or follow the code in the Description
Snack, screenshot, or link to a repository
Snack: https://snack.expo.dev/@ramiel99/uplifting-blue-celery
The text was updated successfully, but these errors were encountered: