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.04 kB
TypeScript
import React from 'react';
import { CometChat } from '@cometchat-pro/react-native-chat';
import { AvatarStyleInterface } from '../../shared';
import { IncomingCallStyleInterface } from './IncomingCallStyle';
import { OngoingCallStyleInterface } from '../CometChatOngoingCall';
export interface CometChatIncomingCallInterface {
call: CometChat.Call | CometChat.CustomMessage;
title?: string;
SubtitleView?: (call: CometChat.Call | CometChat.CustomMessage) => JSX.Element;
disableSoundForCalls?: boolean;
customSoundForCalls?: string;
onAccept?: (message: CometChat.BaseMessage) => void;
onDecline: (message: CometChat.BaseMessage) => void;
onError?: (e: CometChat.CometChatException) => void;
acceptButtonText?: string;
declineButtonText?: string;
avatarStyle?: AvatarStyleInterface;
incomingCallStyle?: IncomingCallStyleInterface;
ongoingCallScreenStyle?: OngoingCallStyleInterface;
}
export declare const CometChatIncomingCall: (props: CometChatIncomingCallInterface) => React.JSX.Element;