UNPKG

@cometchat/chat-uikit-react-native

Version:

Ready-to-use Chat UI Components for React Native

19 lines (17 loc) 629 B
import { CometChat } from "@cometchat/chat-sdk-react-native"; import { ImageSourcePropType, ImageStyle, TextStyle, ViewStyle } from "react-native"; import { ActionItemInterface } from "../views"; import { JSX } from "react"; export type CometChatMessageOption = ActionItemInterface & { id: string; title: string; icon?: JSX.Element | ImageSourcePropType; CustomView?: (message: CometChat.BaseMessage) => JSX.Element; onPress?: (message: CometChat.BaseMessage) => void; style?: Partial<{ containerStyle: ViewStyle; iconStyle: ImageStyle; iconContainerStyle: ViewStyle; titleStyle: TextStyle; }>; };