* Fix channel and user list items * Fixes on members and create a dm lists * Fix tutorial and ipad * Fix test * Address feedback * Several fixes on Android * Fix tests * Address feedback * Add more non breaking strings --------- Co-authored-by: Daniel Espino <danielespino@MacBook-Pro-de-Daniel.local>
24 lines
897 B
TypeScript
24 lines
897 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import type CustomEmojiModel from '@typings/database/models/servers/custom_emoji';
|
|
import type {StyleProp, TextStyle} from 'react-native';
|
|
import type {ImageStyle} from 'react-native-fast-image';
|
|
|
|
// The intersection of the image styles and text styles
|
|
type ImageStyleUniques = Omit<ImageStyle, keyof(TextStyle)>
|
|
export type EmojiCommonStyle = Omit<ImageStyle, keyof(ImageStyleUniques)>
|
|
|
|
export type EmojiProps = {
|
|
emojiName: string;
|
|
displayTextOnly?: boolean;
|
|
literal?: string;
|
|
size?: number;
|
|
textStyle?: StyleProp<TextStyle>;
|
|
imageStyle?: StyleProp<ImageStyle>;
|
|
commonStyle?: StyleProp<EmojiCommonStyle>;
|
|
customEmojis: CustomEmojiModel[];
|
|
testID?: string;
|
|
}
|
|
|
|
export type EmojiComponent = (props: Omit<EmojiProps, 'customEmojis'>) => JSX.Element;
|