mirror of
https://github.com/mattermost/mattermost-mobile.git
synced 2026-11-05 18:38:54 +00:00
* 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
20 lines
566 B
TypeScript
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,
|
|
};
|