import type React from 'react'; import type { TextStyle, StyleProp, ViewProps } from 'react-native'; export type ResultStatus = | 'success' | 'error' | 'info' | 'warning' | 'waiting' | 'reject'; export interface ResultProps extends ViewProps { /** * subtitle 文字样式 */ subtitleTextStyle?: StyleProp; /** * subTitle 文字样式 */ titleTextStyle?: StyleProp; /** * 操作区 */ extra?: React.ReactNode; /** * 自定义 icon */ renderIcon?: (color: string, size: number) => React.ReactNode; /** * 结果的状态,决定图标和颜色 */ status: ResultStatus; /** * subtitle 文字 */ subtitle?: React.ReactNode; /** * title 文字 */ title?: React.ReactNode; /** * layout icon 和文字的布局方式 */ layout?: 'vertical' | 'horizontal'; } export interface ResultIconProps extends ViewProps { width?: number; height?: number; }