UNPKG

@cometchat/chat-uikit-react-native

Version:

Ready-to-use Chat UI Components for React Native

31 lines (30 loc) 1.16 kB
import { CometChat } from "@cometchat/chat-sdk-react-native"; import { JSX } from "react"; declare const CometChatCalls: any; /** * Props for the CometChatOngoingCall component. * * @interface CometChatOngoingCallInterface */ export interface CometChatOngoingCallInterface { /** The session ID for the ongoing call */ sessionID: string; /** * An instance of the CallSettingsBuilder used to configure the call. * This is typically built using CometChatCalls.CallSettingsBuilder. */ callSettingsBuilder: typeof CometChatCalls.CallSettingsBuilder; /** Callback fired when an error occurs */ onError?: (e: CometChat.CometChatException) => void; } /** * CometChatOngoingCall component. * * This component handles the ongoing call session by generating a call token and * rendering the CometChatCalls component with the appropriate call settings and token. * * @param {CometChatOngoingCallInterface} props - Component configuration props. * @returns {JSX.Element} The rendered ongoing call component. */ export declare const CometChatOngoingCall: (props: CometChatOngoingCallInterface) => JSX.Element; export {};