* Initial commit post input * Fix message posting, add create direct channel and minor fixes * Fix "is typing" and "react to last post" behaviour * Some reordering, better handling of upload error, properly clear draft on send message, and fix minor progress bar misbehavior * Add keyboard listener for shift-enter, add selection between video or photo while attaching, add alert when trying to attach more than you are allowed, add paste functionality, minor fixes and reordering * Add library patch * Fix lint * Address feedback * Address feedback * Add missing negation * Check for group name and fix typo on draft comparisons * Address feedback * Address feedback * Address feedback * Address feedback * Fix several bugs * Remove @app imports * Address feedback * fix post list & post draft layout on iOS * Fix post draft cursor position * Fix file upload route * Allow to pick multiple images using the image picker * accurately get the channel member count * remove android cursor workaround * Remove local const INPUT_LINE_HEIGHT * move getPlaceHolder out of the component * use substring instead of legacy substr for hardward keyboard * Move onAppStateChange above the effects * Fix camera action bottom sheet * no need to memo SendButton * properly use memberCount in sender handler * Refactor how to get memberCount * Fix queryRecentPostsInThread * Remove unused isDirectChannelVisible && isGroupChannelVisible util functions * rename errorBadUser to errorUnkownUser * extract localized strings * use ClientErrorProps instead of ClientError * Minor improvements Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
48 lines
1.4 KiB
TypeScript
48 lines
1.4 KiB
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import {Platform} from 'react-native';
|
|
|
|
export const BOTTOM_TAB_HEIGHT = 52;
|
|
export const BOTTOM_TAB_ICON_SIZE = 31.2;
|
|
export const PROFILE_PICTURE_SIZE = 32;
|
|
export const PROFILE_PICTURE_EMOJI_SIZE = 28;
|
|
export const SEARCH_INPUT_HEIGHT = Platform.select({android: 40, ios: 36})!;
|
|
|
|
export const TEAM_SIDEBAR_WIDTH = 72;
|
|
export const TABLET_HEADER_HEIGHT = 44;
|
|
export const TABLET_SIDEBAR_WIDTH = 320;
|
|
|
|
export const IOS_DEFAULT_HEADER_HEIGHT = 50;
|
|
export const ANDROID_DEFAULT_HEADER_HEIGHT = 56;
|
|
export const LARGE_HEADER_TITLE = 60;
|
|
export const HEADER_WITH_SEARCH_HEIGHT = -16;
|
|
export const HEADER_WITH_SUBTITLE = 24;
|
|
export const IOS_HEADER_SEARCH_INSET = 20;
|
|
export const TABLET_HEADER_SEARCH_INSET = 28;
|
|
export const ANDROID_HEADER_SEARCH_INSET = 11;
|
|
|
|
export const INDICATOR_BAR_HEIGHT = 38;
|
|
|
|
export default {
|
|
BOTTOM_TAB_HEIGHT,
|
|
BOTTOM_TAB_ICON_SIZE,
|
|
PROFILE_PICTURE_SIZE,
|
|
PROFILE_PICTURE_EMOJI_SIZE,
|
|
DATA_SOURCE_USERS: 'users',
|
|
DATA_SOURCE_CHANNELS: 'channels',
|
|
SEARCH_INPUT_HEIGHT,
|
|
TABLET_SIDEBAR_WIDTH,
|
|
TEAM_SIDEBAR_WIDTH,
|
|
TABLET_HEADER_HEIGHT,
|
|
IOS_DEFAULT_HEADER_HEIGHT,
|
|
ANDROID_DEFAULT_HEADER_HEIGHT,
|
|
LARGE_HEADER_TITLE,
|
|
HEADER_WITH_SEARCH_HEIGHT,
|
|
HEADER_WITH_SUBTITLE,
|
|
IOS_HEADER_SEARCH_INSET,
|
|
TABLET_HEADER_SEARCH_INSET,
|
|
ANDROID_HEADER_SEARCH_INSET,
|
|
INDICATOR_BAR_HEIGHT,
|
|
};
|
|
|