@cometchat/chat-uikit-react-native
Version:
Ready-to-use Chat UI Components for React Native
44 lines (43 loc) • 1.44 kB
TypeScript
import { CometChat } from "@cometchat/chat-sdk-react-native";
import { JSX } from "react";
/**
* Props for the CometChatReactionList component.
*/
export interface CometChatReactionListInterface {
/**
* The message object whose reactions will be displayed.
*/
message: CometChat.BaseMessage;
/**
* Callback function invoked when a reaction is pressed.
*
* @param messageReaction - The reaction object that was pressed.
* @param message - The message object.
*/
onPress?: (messageReaction: CometChat.Reaction, message: CometChat.BaseMessage) => void;
/**
* Request builder for fetching reactions.
*/
reactionsRequestBuilder?: CometChat.ReactionsRequestBuilder;
/**
* The currently selected reaction filter (e.g. "All" or a specific reaction).
*/
selectedReaction?: string;
/**
* A custom component to render in case of an error state.
*
* @returns A JSX element representing the error state.
*/
ErrorStateView?: () => JSX.Element;
/**
* Custom error text to display when an error occurs.
*/
errorStateText?: string;
/**
* A custom component to render during the loading state.
*
* @returns A JSX element representing the loading state.
*/
LoadingStateView?: () => JSX.Element;
}
export declare const CometChatReactionList: (props: CometChatReactionListInterface) => JSX.Element;