@ant-design/react-native
Version:
基于蚂蚁金服移动设计规范的 React Native 组件库
17 lines (16 loc) • 488 B
TypeScript
import React from 'react';
import { ToastStyle } from './style';
export interface ToastProps {
content: string | React.ReactNode;
icon?: 'success' | 'fail' | 'offline' | 'loading' | React.ReactNode;
duration?: number;
mask?: boolean;
onAnimationEnd?: () => void;
onClose?: () => void;
position?: 'top' | 'bottom' | 'center';
styles?: Partial<ToastStyle>;
type?: string;
}
export interface ToastShowProps extends ToastProps {
stackable?: boolean;
}