Skip to content

Commit

Permalink
Merge pull request #30461 from Expensify/Rory-FixAndroidScrollRegression
Browse files Browse the repository at this point in the history
Add autoScrollToTopThreshold to main chat list

(cherry picked from commit 6863ca6)
  • Loading branch information
marcaaron authored and OSBotify committed Oct 26, 2023
1 parent de2fae1 commit b514504
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/InvertedFlatList/BaseInvertedFlatList.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -135,6 +136,7 @@ function BaseInvertedFlatList(props) {
windowSize={15}
maintainVisibleContentPosition={{
minIndexForVisible: 0,
autoscrollToTopThreshold: variables.listItemHeightNormal,
}}
inverted
/>
Expand Down

0 comments on commit b514504

Please sign in to comment.