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
75 lines (74 loc) • 3.18 kB
TypeScript
/// <reference types="react" />
import { AvatarStyleInterface, CometChatOptions, ImageType, ListItemStyleInterface } from '../shared';
import { GroupsStyleInterface } from './GroupsStyle';
import { CometChat } from '@cometchat-pro/react-native-chat';
import { StatusIndicatorStyleInterface } from '../shared/views/CometChatStatusIndicator/StatusIndicatorStyle';
export interface GroupsConfigurationInterface {
SubtitleView?: (item: CometChat.Group) => JSX.Element;
ListItemView?: (item: CometChat.Group) => JSX.Element;
AppBarOption?: () => JSX.Element;
options?: (item: CometChat.Group) => CometChatOptions[];
hideSeparator?: boolean;
groupsStyle?: GroupsStyleInterface;
searchPlaceholderText?: string;
backButton?: ImageType;
showBackButton?: boolean;
selectionMode?: 'none' | 'single' | 'multiple';
onSelection?: (items: Array<CometChat.Group>) => void;
searchBoxIcon?: ImageType;
hideSearch?: boolean;
title?: string;
EmptyStateView?: () => JSX.Element;
ErrorStateView?: () => JSX.Element;
LoadingStateView?: () => JSX.Element;
groupsRequestBuilder?: CometChat.GroupsRequestBuilder;
searchKeyword?: string;
privateGroupIcon?: ImageType;
passwordGroupIcon?: ImageType;
hideError?: boolean;
onItemPress?: (item: CometChat.Group) => void;
onItemLongPress?: (item: CometChat.Group) => void;
onError?: (e: CometChat.CometChatException) => void;
onBack?: () => void;
listItemStyle?: ListItemStyleInterface;
avatarStyle?: AvatarStyleInterface;
statusIndicatorStyle?: StatusIndicatorStyleInterface;
searchRequestBuilder?: CometChat.GroupsRequestBuilder;
}
/**
* @class GroupConfiguration
* @description GroupConfiguration class is used for defining the GroupConfiguration template.
*/
export declare class GroupsConfiguration implements GroupsConfigurationInterface {
SubtitleView: (item: CometChat.Group) => JSX.Element;
ListItemView: (item: CometChat.Group) => JSX.Element;
AppBarOption: () => JSX.Element;
options: (item: CometChat.Group) => CometChatOptions[];
hideSeparator: boolean;
searchPlaceholderText: string;
backButton: ImageType;
showBackButton: boolean;
selectionMode: 'none' | 'single' | 'multiple';
onSelection: (items: Array<CometChat.Group>) => void;
searchBoxIcon: ImageType;
hideSearch: boolean;
title: string;
EmptyStateView: () => JSX.Element;
ErrorStateView: () => JSX.Element;
LoadingStateView: () => JSX.Element;
groupsRequestBuilder: CometChat.GroupsRequestBuilder;
searchKeyword: string;
privateGroupIcon: ImageType;
passwordGroupIcon: ImageType;
hideError: boolean;
onItemPress?: (item: CometChat.Group) => void;
onItemLongPress?: (item: CometChat.Group) => void;
onError?: (e: CometChat.CometChatException) => void;
onBack?: () => void;
groupsStyle?: GroupsStyleInterface;
listItemStyle?: ListItemStyleInterface;
avatarStyle?: AvatarStyleInterface;
statusIndicatorStyle?: StatusIndicatorStyleInterface;
searchRequestBuilder?: CometChat.GroupsRequestBuilder;
constructor(props: GroupsConfigurationInterface);
}