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
20 lines (19 loc) • 1.33 kB
TypeScript
import { CometChat } from "@cometchat-pro/react-native-chat";
import { UIKitSettings } from "./UIKitSettings";
export declare class CometChatUIKit {
static uiKitSettings: UIKitSettings;
static init(uiKitSettings: UIKitSettings): Promise<boolean>;
private static enableExtensions;
static getLoggedInUser(): Promise<CometChat.User>;
static login({ uid, authToken }: {
uid?: string;
authToken?: string;
}): Promise<CometChat.User>;
static logout(): Promise<Object>;
static createUser(user: CometChat.User): Promise<CometChat.User>;
static updateUser(user: CometChat.User): Promise<CometChat.User>;
static checkAuthSettings(onError: (e: CometChat.CometChatException) => void): boolean;
static sendCustomMessage(message: CometChat.CustomMessage, onSuccess?: (msg: CometChat.CustomMessage | CometChat.BaseMessage) => void, onError?: (msg: CometChat.CometChatException) => void): void;
static sendMediaMessage(message: CometChat.MediaMessage, onSuccess?: (msg: CometChat.MediaMessage | CometChat.BaseMessage) => void, onError?: (msg: CometChat.CometChatException) => void): void;
static sendTextMessage(message: CometChat.TextMessage, onSuccess?: (msg: CometChat.TextMessage | CometChat.BaseMessage) => void, onError?: (msg: CometChat.CometChatException) => void): void;
}