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
62 lines (61 loc) • 1.61 kB
TypeScript
import React from 'react';
import { CometChat } from '@cometchat-pro/react-native-chat';
import { CallButtonStyleInterface } from './CallButtonStyle';
import { ImageType } from '../../shared/base';
export interface CometChatCallButtonsInterface {
/**
* CometChat.User object
*/
user?: CometChat.User;
/**
* CometChat.Group object
*/
group?: CometChat.Group;
/**
* Image icon for voice calls
*/
voiceCallIconImage?: ImageType;
/**
* text tobe shown below voice icon
*/
voiceCallIconText?: string;
/**
* video icon for Video calls
*/
videoCallIconImage?: ImageType;
/**
* text tobe shown below video call icon.
*/
videoCallIconText?: string;
/**
* action tobe performed when voice icon get clicked.
*/
onVoiceCallPress?: (params: {
user?: CometChat.User;
group?: CometChat.Group;
}) => void;
/**
* action tobe performed when video icon get clicked.
*/
onVideoCallPress?: (params: {
user?: CometChat.User;
group?: CometChat.Group;
}) => void;
/**
* should voice call icon be shown
*/
hideVoiceCall?: boolean;
/**
* should video call icon be shown
*/
hideVideoCall?: boolean;
/**
* style object for call buttons
*/
callButtonStyle?: CallButtonStyleInterface;
/**
* callback if any error occured.
*/
onError?: (e: CometChat.CometChatException) => void;
}
export declare const CometChatCallButtons: (props: CometChatCallButtonsInterface) => React.JSX.Element;