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
22 lines (21 loc) • 1.33 kB
TypeScript
import { DataSource, DataSourceDecorator } from '../../shared/framework';
import { CometChat } from '@cometchat-pro/react-native-chat';
import { MessageBubbleAlignmentType } from '../../shared/constants/UIKitConstants';
import { CometChatTheme } from '../../shared/resources/CometChatTheme';
import { PollsConfigurationInterface } from './PollsConfigurations';
import { CometChatMessageComposerActionInterface } from '../../shared/helper/types';
import { CometChatMessageTemplate } from '../../shared/modals';
import React from 'react';
export declare class PollsExtensionDecorator extends DataSourceDecorator {
pollsConfiguration?: PollsConfigurationInterface;
loggedInUser: CometChat.User;
constructor(dataSource: DataSource, pollsConfiguration?: PollsConfigurationInterface);
isDeletedMessage(message: CometChat.BaseMessage): boolean;
getId(): string;
getLastConversationMessage(conversation: CometChat.Conversation): string;
getAllMessageCategories(): string[];
getAllMessageTypes(): string[];
getAttachmentOptions(user?: any, group?: any, composerId?: any): CometChatMessageComposerActionInterface[];
getAllMessageTemplates(theme: CometChatTheme): CometChatMessageTemplate[];
getPollBubble(message: CometChat.BaseMessage, _alignment: MessageBubbleAlignmentType): React.JSX.Element;
}