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
  • Loading branch information
marcaaron authored Oct 26, 2023
2 parents a4ab410 + 6b9fc22 commit 6863ca6
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 6863ca6

Please sign in to comment.