mattermost-mobile/app/constants/gallery.ts
Guillermo Vayá f024e00ca6
[MM-67056] Show actions on image gallery for android (#9386)
* show actions on image gallery for android

* use a constant, update dependencies

* use original window metrics if safe insets fail

* restore deps
2026-01-12 14:52:41 +01:00

21 lines
753 B
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
export const GALLERY_FOOTER_HEIGHT = 75;
export const VIDEO_INSET = 100;
export const ANDROID_VIDEO_INSET = 20;
// Fallback for Android navigation bar height when SafeAreaContext returns 0 in overlays
// Typical Android 3-button navigation bar height is 48-63dp
export const ANDROID_NAV_BAR_HEIGHT = 63;
// Additional padding for Android gallery footer to ensure visibility above navigation bar
export const ANDROID_GALLERY_FOOTER_PADDING = 10;
export const DOUBLE_TAP_SCALE = 4;
export const MAX_SCALE = 7;
export const MIN_SCALE = 0.7;
export const OVER_SCALE = 0.5;
export const MIN_VELOCITY = 700;
export const MAX_VELOCITY = 3000;