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
35 lines (34 loc) • 1.31 kB
TypeScript
import { CometChat } from "@cometchat-pro/react-native-chat";
import { ImageType } from "../../shared";
import { CallButtonStyleInterface } from "./CallButtonStyle";
export interface CometChatCallButtonConfigurationInterface {
voiceIconImage?: ImageType;
videoIconImage?: ImageType;
hideVideoCall?: boolean;
hideVoiceCall?: boolean;
onVoiceCallPress?: (param: {
user?: CometChat.User;
group?: CometChat.Group;
}) => void;
onVideoCallPress?: (param: {
user?: CometChat.User;
group?: CometChat.Group;
}) => void;
callButtonStyle: CallButtonStyleInterface;
}
export default class CometChatCallButtonConfiguration implements CometChatCallButtonConfigurationInterface {
voiceIconImage?: ImageType;
videoIconImage?: ImageType;
hideVideoCall?: boolean;
hideVoiceCall?: boolean;
onVoiceCallPress?: (param: {
user?: CometChat.User;
group?: CometChat.Group;
}) => void;
onVideoCallPress?: (param: {
user?: CometChat.User;
group?: CometChat.Group;
}) => void;
callButtonStyle: CallButtonStyleInterface;
constructor({ callButtonStyle, onVideoCallPress, onVoiceCallPress, videoIconImage, voiceIconImage, hideVideoCall, hideVoiceCall }: CometChatCallButtonConfigurationInterface);
}