mattermost-mobile-upstream/app/components/post_list/config.ts
Elias Nahum ed4a3c8f66
Multiple Fixes (#9767)
* fix(ios): build from PR and locally in release mode

* fix(android): team icon disappearing when switching teams

* fix: more messages above banner animation and ios pop gesture

* fix(ios): post draft out of place caused by KeyboardGestureArea
2026-05-19 16:35:20 +08:00

20 lines
566 B
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
export const INITIAL_BATCH_TO_RENDER = 10;
export const SCROLL_POSITION_CONFIG = {
// To avoid scrolling the list when new messages arrives
// if the user is not at the bottom
minIndexForVisible: 0,
// If the user is at the bottom or 60px from the bottom
// auto scroll show the new message
autoscrollToTopThreshold: 60,
};
export const VIEWABILITY_CONFIG = {
itemVisiblePercentThreshold: 50,
minimumViewTime: 500,
};