UNPKG

@cometchat/chat-uikit-react-native

Version:

Ready-to-use Chat UI Components for React Native

26 lines (25 loc) 999 B
import { CometChat } from "@cometchat/chat-sdk-react-native"; import { JSX } from "react"; import { ColorValue } from "react-native"; import { MessageBubbleAlignmentType } from "../base"; import { IconName } from "../icons/Icon"; import { CometChatMessageTemplate } from "../modals"; import { CometChatTheme } from "../../theme/type"; type MessageViewParamsType = { message: CometChat.BaseMessage; templates?: CometChatMessageTemplate[]; alignment?: MessageBubbleAlignmentType; theme: CometChatTheme; isThreaded?: boolean; datePattern?: (message: CometChat.BaseMessage) => string; receiptsVisibility?: boolean; avatarVisibility?: boolean; }; export declare const MessageUtils: { getMessageView: (params: MessageViewParamsType) => JSX.Element; }; export declare const getMessagePreviewInternal: (iconName: IconName, text: string, { iconColor, theme }: { iconColor?: ColorValue | undefined; theme?: CometChatTheme | undefined; }) => JSX.Element; export {};