@cometchat/chat-uikit-react-native
Version:
Ready-to-use Chat UI Components for React Native
78 lines • 2.74 kB
JavaScript
import { CometChat } from "@cometchat/chat-sdk-react-native";
/**
* Represents a message template for CometChat.
*/
export class CometChatMessageTemplate {
/**
* The category of the message template.
*/
category;
/**
* The type of the message template.
*/
type;
/**
* The content view of the message template.
* @param messageObject - The message object.
* @param alignment - The alignment of the message bubble.
* @returns The JSX element representing the content view.
*/
ContentView;
/**
* The bubble view of the message template.
* @param messageObject - The message object.
* @returns The JSX element representing the bubble view.
*/
BubbleView;
/**
* The bottom view of the message template.
* @param messageObject - The message object.
* @returns The JSX element representing the bottom view.
*/
BottomView;
/**
* The header view of the message template.
* @param messageObject - The message object.
* @param alignment - The alignment of the message bubble.
* @returns The JSX element representing the header view.
*/
HeaderView;
/**
* The status info view of the message template for DateTime and Receipt.
* @param messageObject - The message object.
* @param alignment - The alignment of the message bubble.
* @returns The JSX element representing the status info view.
*/
StatusInfoView;
/**
* The footer view of the message template.
* @param messageObject - The message object.
* @param alignment - The alignment of the message bubble.
* @returns The JSX element representing the footer view.
*/
FooterView;
/**
* The options of the message template.
* @param loggedInUser - The logged in user.
* @param messageObject - The message object.
* @param group - The group.
* @returns The array of CometChatMessageOption.
*/
options;
/**
* Constructs a new instance of the CometChatMessageTemplate class.
* @param {MessageTemplateInterface} options - The options for the message template.
*/
constructor({ category = "MESSAGE", type = CometChat.MESSAGE_TYPE.TEXT, ContentView, BottomView, BubbleView, HeaderView, StatusInfoView, FooterView, options, }) {
this.category = category;
this.type = type;
this.ContentView = ContentView;
this.BottomView = BottomView;
this.BubbleView = BubbleView;
this.HeaderView = HeaderView;
this.StatusInfoView = StatusInfoView;
this.FooterView = FooterView;
this.options = options;
}
}
//# sourceMappingURL=CometChatMessageTemplate.js.map