changed my mind on maintainVisibleContentPosition

This commit is contained in:
Samuel Newman
2026-06-05 11:58:59 +03:00
parent bd0852d0a2
commit d1fb10dce4
-4
View File
@@ -156,10 +156,6 @@ let List = forwardRef<ListMethods, ListProps>(
return (
<FlatList_INTERNAL
showsVerticalScrollIndicator // overridable
// Anchor the currently-visible item across content relayouts so that
// changing the viewport size (e.g. device rotation) doesn't lose the
// scroll position as items reflow to the new width.
maintainVisibleContentPosition={{minIndexForVisible: 0}}
onViewableItemsChanged={onViewableItemsChanged}
viewabilityConfig={viewabilityConfig}
{...props}