UNPKG

react-native-chating-ui-kit

Version:

CometChat React Native UI Kit is a collection of custom UI Components designed to build text , chat and calling features in your application. The UI Kit is developed to keep developers in mind and aims to reduce development efforts significantly

25 lines (24 loc) 1.78 kB
/// <reference types="react" /> import { CometChat } from "@cometchat-pro/react-native-chat"; import { MessageBubbleAlignmentType } from "../constants/UIKitConstants"; import { CometChatMessageOption } from "./CometChatMessageOption"; interface MessageTemplateInterface { category: string; type: (typeof CometChat.MESSAGE_TYPE)[keyof typeof CometChat.MESSAGE_TYPE]; ContentView?: (messageObject: CometChat.BaseMessage, alignment: MessageBubbleAlignmentType) => JSX.Element; BubbleView?: (messageObject: CometChat.BaseMessage) => JSX.Element; HeaderView?: (messageObject: CometChat.BaseMessage, alignment: MessageBubbleAlignmentType) => JSX.Element; FooterView?: (messageObject: CometChat.BaseMessage, alignment: MessageBubbleAlignmentType) => JSX.Element; options?: (loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group: CometChat.Group) => CometChatMessageOption[]; } export declare class CometChatMessageTemplate implements MessageTemplateInterface { category: string; type: (typeof CometChat.MESSAGE_TYPE)[keyof typeof CometChat.MESSAGE_TYPE]; ContentView: (messageObject: CometChat.BaseMessage, alignment: MessageBubbleAlignmentType) => JSX.Element; BubbleView: (messageObject: CometChat.BaseMessage) => JSX.Element; HeaderView: (messageObject: CometChat.BaseMessage, alignment: MessageBubbleAlignmentType) => JSX.Element; FooterView: (messageObject: CometChat.BaseMessage, alignment: MessageBubbleAlignmentType) => JSX.Element; options: (loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group: CometChat.Group) => CometChatMessageOption[]; constructor({ category, type, ContentView, BubbleView, HeaderView, FooterView, options, }: MessageTemplateInterface); } export {};