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
24 lines (23 loc) • 1.2 kB
TypeScript
import { DataSource, DataSourceDecorator } from '../../shared/framework';
import { CometChat } from '@cometchat-pro/react-native-chat';
import { CometChatMessageOption } from '../../shared/modals';
import React from 'react';
import { MessageBubbleAlignmentType } from '../../shared/constants/UIKitConstants';
import { ReactionsConfigurationInterface } from './ReactionsExtension';
export declare class ReactionsExtensionDecorator extends DataSourceDecorator {
messageObject: CometChat.BaseMessage;
loggedInUser: any;
imageModerationConfiguration?: ReactionsConfigurationInterface;
constructor(dataSource: DataSource, imageModerationConfiguration?: ReactionsConfigurationInterface);
getId(): string;
getBottomView(messageObject: CometChat.BaseMessage, alignment: MessageBubbleAlignmentType): React.JSX.Element;
getReactions(): CometChatMessageOption;
getCommonOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group: CometChat.Group): CometChatMessageOption[];
/**
*
* @param {*} message
* @param {*} emoji
* Calls extension reaction to Messages
*/
reactToMessages: (emoji: any, messageObj: any) => void;
}