UNPKG

@cometchat/chat-uikit-react-native

Version:

Ready-to-use Chat UI Components for React Native

42 lines (41 loc) 1.07 kB
import { JSX } from "react"; import { StyleProp, TextStyle, ViewStyle } from "react-native"; /** * Props for the ErrorEmptyView component. */ type ErrorEmptyViewProps = { /** * The title text to display in the error/empty view. */ title?: string; /** * The subtitle text to display in the error/empty view. */ subTitle?: string; /** * A JSX element to display as an icon. */ Icon?: JSX.Element; /** * An optional tertiary title for additional context. */ tertiaryTitle?: string; /** * Custom style for the container of the error/empty view. */ containerStyle?: StyleProp<ViewStyle>; /** * Custom style for the title text. */ titleStyle?: StyleProp<TextStyle>; /** * Custom style for the subtitle text. */ subTitleStyle?: StyleProp<TextStyle>; /** * A custom JSX element to render for a retry action. */ RetryView?: JSX.Element; }; export declare const ErrorEmptyView: (props: ErrorEmptyViewProps) => JSX.Element; export {};