From 6b93aef20dbc7ca1ab7319410ede411b0e1c75f1 Mon Sep 17 00:00:00 2001 From: Rory Abraham <47436092+roryabraham@users.noreply.github.com> Date: Wed, 10 Jan 2024 12:13:07 -0800 Subject: [PATCH] Merge pull request #34244 from margelo/perunt/return-autoscrollToTopThreshold `AutoscrollToTopThreshold` (cherry picked from commit 99e91c35d811607bc985f5e592e1deae2b209434) --- src/components/InvertedFlatList/BaseInvertedFlatList.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/InvertedFlatList/BaseInvertedFlatList.tsx b/src/components/InvertedFlatList/BaseInvertedFlatList.tsx index 4a4ba5560e60..e28400505280 100644 --- a/src/components/InvertedFlatList/BaseInvertedFlatList.tsx +++ b/src/components/InvertedFlatList/BaseInvertedFlatList.tsx @@ -4,6 +4,7 @@ import type {FlatListProps} from 'react-native'; import FlatList from '@components/FlatList'; const WINDOW_SIZE = 15; +const AUTOSCROLL_TO_TOP_THRESHOLD = 128; function BaseInvertedFlatList(props: FlatListProps, ref: ForwardedRef) { return ( @@ -14,6 +15,7 @@ function BaseInvertedFlatList(props: FlatListProps, ref: ForwardedRef