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

87 lines (86 loc) 3.49 kB
/// <reference types="react" /> import { StyleProp, ViewStyle } from "react-native/types"; import { CometChat } from "@cometchat-pro/react-native-chat"; import { AvatarStyleInterface, CometChatOptions, ImageType, ListItemStyleInterface } from "../../shared"; import { StatusIndicatorStyleInterface } from "../../shared/views/CometChatStatusIndicator/StatusIndicatorStyle"; import { CallHistoryStyleInterface } from "./CallHistoryStyle"; import { SelectionMode } from "../../shared/base/Types"; export interface CallHistoryConfigurationInterface { SubtitleView?: (param: { call?: CometChat.Call; }) => JSX.Element; ListItemView?: (param: { call?: CometChat.Call; }) => JSX.Element; AppBarOptions?: () => JSX.Element; options?: (param: { message: CometChat.BaseMessage; }) => CometChatOptions[]; messageRequestBuilder?: CometChat.MessagesRequestBuilder; hideSeperator?: boolean; BackButton?: JSX.Element; showBackButton?: boolean; selectionMode?: SelectionMode; onSelection?: (items: Array<CometChat.BaseMessage>) => void; EmptyStateView?: () => JSX.Element; emptyStateText?: string; ErrorStateView?: () => JSX.Element; errorStateText?: string; loadingIcon?: ImageType; LoadingStateView?: () => JSX.Element; hideError?: boolean; onItemPress?: (item: CometChat.Call) => void; onItemLongPress?: (item: CometChat.Call) => void; onError?: (e: CometChat.CometChatException) => void; onBack?: () => void; onInfoIconPress?: (prop: { call: CometChat.Call; }) => void; avatarStyle?: AvatarStyleInterface; statusIndicatorStyle?: StatusIndicatorStyleInterface; listItemStyle?: ListItemStyleInterface; callHistoryStyle?: CallHistoryStyleInterface; headViewContainerStyle?: StyleProp<ViewStyle>; bodyViewContainerStyle?: StyleProp<ViewStyle>; tailViewContainerStyle?: StyleProp<ViewStyle>; } export declare class CallHistoryConfiguration implements CallHistoryConfigurationInterface { SubtitleView?: (param: { call?: CometChat.Call; }) => JSX.Element; ListItemView?: (param: { call?: CometChat.Call; }) => JSX.Element; AppBarOptions?: () => JSX.Element; options?: (param: { message: CometChat.BaseMessage; }) => CometChatOptions[]; messageRequestBuilder?: CometChat.MessagesRequestBuilder; hideSeperator?: boolean; BackButton?: JSX.Element; showBackButton?: boolean; selectionMode?: SelectionMode; onSelection?: (items: Array<CometChat.BaseMessage>) => void; EmptyStateView?: () => JSX.Element; emptyStateText?: string; ErrorStateView?: () => JSX.Element; errorStateText?: string; loadingIcon?: ImageType; LoadingStateView?: () => JSX.Element; hideError?: boolean; onItemPress?: (item: CometChat.Call) => void; onItemLongPress?: (item: CometChat.Call) => void; onError?: (e: CometChat.CometChatException) => void; onBack?: () => void; onInfoIconPress?: (prop: { call: CometChat.Call; }) => void; avatarStyle?: AvatarStyleInterface; statusIndicatorStyle?: StatusIndicatorStyleInterface; listItemStyle?: ListItemStyleInterface; callHistoryStyle?: CallHistoryStyleInterface; headViewContainerStyle?: StyleProp<ViewStyle>; bodyViewContainerStyle?: StyleProp<ViewStyle>; tailViewContainerStyle?: StyleProp<ViewStyle>; constructor(props: CallHistoryConfigurationInterface); }