UNPKG

@fruits-chain/react-native-xiaoshu

Version:
50 lines (39 loc) 913 B
import type React from 'react' import type { TextStyle, StyleProp, ViewProps, ColorValue } from 'react-native' import type { ResultTheme } from './style' export type ResultStatus = 'success' | 'error' | 'info' | 'warning' export interface ResultProps extends ViewProps { theme?: Partial<ResultTheme> /** * subtitle 文字样式 */ subtitleTextStyle?: StyleProp<TextStyle> /** * title 文字样式 */ titleTextStyle?: StyleProp<TextStyle> /** * 操作区 */ extra?: React.ReactNode /** * 自定义 icon */ renderIcon?: (color: ColorValue, size: number) => React.ReactNode /** * 结果的状态,决定图标和颜色 */ status: ResultStatus /** * subtitle 文字 */ subtitle?: React.ReactNode /** * title 文字 */ title?: React.ReactNode } export interface ResultIconProps extends ViewProps { width?: number height?: number }