UNPKG

@rohitninawe/chat-uikit-react-native

Version:

Ready-to-use Chat UI Components for React Native

36 lines (35 loc) 1.73 kB
import { CometChat } from "@cometchat/chat-sdk-react-native"; import { CometChatMessageTemplate } from "../shared/modals"; import { DataSourceDecorator } from "../shared/framework/DataSourceDecorator"; import { DataSource } from "../shared/framework/DataSource"; import { CometChatTheme } from "../shared/resources/CometChatTheme"; import { CallingConfiguration } from "./CallingConfiguration"; import { AdditionalBubbleStylingParams } from "../shared/base/Types"; export declare class CallingExtensionDecorator extends DataSourceDecorator { configuration: CallingConfiguration; loggedInUser: CometChat.User; constructor(props: { dataSource: DataSource; configuration: CallingConfiguration; }); getId(): string; isDeletedMessage(message: CometChat.BaseMessage): boolean; getAllMessageTypes(): string[]; getAllMessageCategories(): string[]; UserCallBubbleView: ({ message, theme }: { message: any; theme: any; }) => any; getUserAudioCallTemplate: (theme: any) => CometChatMessageTemplate; getUserVideoCallTemplates: (theme: any) => CometChatMessageTemplate; GroupCallBubbleView: (props: { message: CometChat.BaseMessage; theme: CometChatTheme; alignment: string; }) => any; startDirectCall(sessionId: string, theme?: CometChatTheme): Promise<void>; getAuxiliaryHeaderAppbarOptions(user: any, group: any, theme: CometChatTheme): any; getGroupCallTemplate: (theme: any) => CometChatMessageTemplate; getAllMessageTemplates(theme: CometChatTheme, additionalParams?: AdditionalBubbleStylingParams): CometChatMessageTemplate[]; getLastConversationMessage(conversation: CometChat.Conversation): string; }