From 1c80e20607156481c50dd97aa4bfa76733c1761a Mon Sep 17 00:00:00 2001 From: Taras Perun Date: Wed, 10 Jan 2024 16:30:58 +0100 Subject: [PATCH] autoscrollToTopThreshold --- 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