From b51450434560869fb759344df77cc4583b271cb1 Mon Sep 17 00:00:00 2001 From: Marc Glasser Date: Thu, 26 Oct 2023 11:25:51 -1000 Subject: [PATCH] Merge pull request #30461 from Expensify/Rory-FixAndroidScrollRegression Add autoScrollToTopThreshold to main chat list (cherry picked from commit 6863ca671ac7d6cd5e9536498324bfbf6421107d) --- src/components/InvertedFlatList/BaseInvertedFlatList.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/InvertedFlatList/BaseInvertedFlatList.js b/src/components/InvertedFlatList/BaseInvertedFlatList.js index baee08eae4cd..044143774dd6 100644 --- a/src/components/InvertedFlatList/BaseInvertedFlatList.js +++ b/src/components/InvertedFlatList/BaseInvertedFlatList.js @@ -4,6 +4,7 @@ import _ from 'underscore'; import PropTypes from 'prop-types'; import * as CollectionUtils from '../../libs/CollectionUtils'; import FlatList from '../FlatList'; +import variables from '../../styles/variables'; const propTypes = { /** Same as FlatList can be any array of anything */ @@ -135,6 +136,7 @@ function BaseInvertedFlatList(props) { windowSize={15} maintainVisibleContentPosition={{ minIndexForVisible: 0, + autoscrollToTopThreshold: variables.listItemHeightNormal, }} inverted />