UNPKG

@td-design/react-native

Version:

react-native UI组件库

24 lines 734 B
import { FC, ReactNode } from 'react'; import { ImageSourcePropType, StyleProp, ViewStyle } from 'react-native'; export interface ActionButtonProps { title: string; type: 'primary' | 'secondary'; onPress: () => void; } export interface ResultProps { /** 主文字 */ title?: ReactNode; /** 内容文字 */ content?: ReactNode; /** 自定义图片 */ imgSource?: ImageSourcePropType; /** 类型(成功、失败、进行中) */ type: 'success' | 'fail' | 'process'; /** 操作项 */ actions?: ActionButtonProps[]; /** 容器样式 */ containerStyle?: StyleProp<ViewStyle>; } declare const Result: FC<ResultProps>; export default Result; //# sourceMappingURL=index.d.ts.map