UNPKG

@cometchat/chat-uikit-react-native

Version:

Ready-to-use Chat UI Components for React Native

19 lines (18 loc) 818 B
import React from "react"; import { StyleProp, TextStyle, ViewStyle } from "react-native"; import { CometChatMentionsFormatter, CometChatTextFormatter, CometChatUrlsFormatter } from "../../formatters"; export interface CometChatTextBubbleInterface { /** * Text to be shown */ text?: string; textStyle?: StyleProp<TextStyle>; /** * Text container style */ textContainerStyle?: StyleProp<ViewStyle>; textFormatters?: Array<CometChatMentionsFormatter | CometChatUrlsFormatter | CometChatTextFormatter>; } export declare const CometChatTextBubble: (props: CometChatTextBubbleInterface) => React.JSX.Element; export declare const CometChatTextBubbleText: (props: Omit<CometChatTextBubbleInterface, "textContainerStyle">) => React.JSX.Element; export default CometChatTextBubble;