// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. /** * Keyboard and emoji picker height constants */ // Emoji search bar dimensions export const SEARCH_BAR_HEIGHT = 56; // paddingTop: 12 + paddingBottom: 12 + search bar ~32px export const SEARCH_CONTAINER_PADDING = 8; // paddingVertical: 4 * 2 // Emoji search visibility offsets (to ensure search values are visible above keyboard) export const SEARCH_VISIBILITY_OFFSET = 40; // Minimal emoji list height (single-line horizontal emoji list for hardware keyboard) export const MINIMAL_EMOJI_LIST_HEIGHT = 50; // Animation durations export const KEYBOARD_TRANSITION_DURATION = 250; /** * Default height for the input accessory view when keyboard height is unknown */ export const DEFAULT_INPUT_ACCESSORY_HEIGHT = 336; /** * Smallest height that counts as a real software keyboard. * * With a hardware keyboard attached the OS still reports its input strip (~48px on * Android, holding the dismiss/switch-keyboard controls), so anything at or below * this is a strip rather than a keyboard. */ export const MIN_SOFTWARE_KEYBOARD_HEIGHT = 75;