Unmounting list header component while applying maintainVisibleContentPosition to flatlist renders white space in place of header compoent on Ios #42905
Labels
Component: FlatList
Issue: Author Provided Repro
This issue can be reproduced in Snack or an attached project.
Needs: Triage 🔍
Platform: iOS
iOS applications.
Description
If a flatlist with a
maintainVisibleContentPosition
prop set has a header list component that is unmounted then the header component unmounts but the list does not scroll to the first element and instead renders white space.Here is the source code also available as snack:
Steps to reproduce
press me
button and notice how there is white space on ios and the list does not scroll, but works fine on androidReact Native Version
0.73.4
Affected Platforms
Runtime - iOS
Output of
npx react-native info
Reproducer
https://snack.expo.dev/@ramiel99/maintainvisiblecontentposition-header-top
Screenshots and Videos
Screen.Recording.2024-02-07.at.11.52.58.AM.mov
The text was updated successfully, but these errors were encountered: