UNPKG

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

44 lines (43 loc) 2.08 kB
/// <reference types="react" /> import { ListRenderItem, StyleProp, ViewStyle } from 'react-native'; import { AvatarStyleInterface, CometChatListStylesInterface, CometChatOptions, ImageType, ListItemStyleInterface } from '../shared'; import { StatusIndicatorStyleInterface } from '../shared/views/CometChatStatusIndicator/StatusIndicatorStyle'; import { CometChatUsersInterface } from './CometChatUsers'; import { CometChat } from '@cometchat-pro/react-native-chat'; export interface UsersConfigurationInterface extends Omit<CometChatUsersInterface, 'title' | 'emptyStateText' | 'errorStateText' | 'listItemKey'> { } export declare class UsersConfiguration { AppBarOptions?: React.FC; avatarStyle?: AvatarStyleInterface; backButtonIcon?: ImageType; bodyViewContainerStyle?: StyleProp<ViewStyle>; disableUsersPresence?: boolean; EmptyStateView?: React.FC; ErrorStateView?: React.FC; headViewContainerStyle?: StyleProp<ViewStyle>; hideError?: boolean; hideSearch?: boolean; hideSeparator?: boolean; listItemStyle?: ListItemStyleInterface; ListItemView?: ListRenderItem<any>; LoadingStateView?: React.FC; onBack?: () => void; onError?: (error: CometChat.CometChatException) => void; onItemPress?: (user: CometChat.User) => void; onItemLongPress?: (user: CometChat.User) => void; onSelection?: (list: CometChat.User[]) => void; options?: (user: CometChat.User) => Array<CometChatOptions>; searchBoxIcon?: ImageType; searchPlaceholderText?: string; searchRequestBuilder?: CometChat.UsersRequestBuilder; selectionIcon?: ImageType; selectionMode?: 'none' | 'single' | 'multiple'; showBackButton?: boolean; statusIndicatorStyle?: StatusIndicatorStyleInterface; SubtitleView?: (item: CometChat.User) => JSX.Element; TailView?: (item: CometChat.User) => JSX.Element; tailViewContainerStyle?: StyleProp<ViewStyle>; usersRequestBuilder?: CometChat.UsersRequestBuilder; usersStyle?: CometChatListStylesInterface; constructor(props: UsersConfigurationInterface); }