disable automaticallAdjustsScrollIndicatorInsets (#7131)

This commit is contained in:
Samuel Newman
2024-12-16 22:06:15 +00:00
committed by GitHub
parent 3ed237b629
commit c339dc5b05
+4
View File
@@ -53,6 +53,7 @@ let List = React.forwardRef<ListMethods, ListProps>(
headerOffset, headerOffset,
style, style,
progressViewOffset, progressViewOffset,
automaticallyAdjustsScrollIndicatorInsets = false,
...props ...props
}, },
ref, ref,
@@ -151,6 +152,9 @@ let List = React.forwardRef<ListMethods, ListProps>(
return ( return (
<FlatList_INTERNAL <FlatList_INTERNAL
{...props} {...props}
automaticallyAdjustsScrollIndicatorInsets={
automaticallyAdjustsScrollIndicatorInsets
}
scrollIndicatorInsets={{top: headerOffset, right: 1}} scrollIndicatorInsets={{top: headerOffset, right: 1}}
contentOffset={contentOffset} contentOffset={contentOffset}
refreshControl={refreshControl} refreshControl={refreshControl}