From 6b9fc221970960e74c9de0b7096427e2f2302215 Mon Sep 17 00:00:00 2001 From: rory Date: Thu, 26 Oct 2023 12:23:23 -0700 Subject: [PATCH] Add autoScrollToTopThreshold --- 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 />