UNPKG

@uiw/react-native

Version:
19 lines (18 loc) 556 B
/// <reference types="react" /> import { StyleProp, ViewStyle } from 'react-native'; import { IconsName } from '../Icon'; export interface ToastProps { type: 'info' | 'success' | 'warning' | 'error'; content: string; duration?: number; showIcon?: boolean; icon?: IconsName; onClose?: () => void; onAnimationEnd?: () => void; style?: StyleProp<ViewStyle>; } declare function ToastContainer(props: ToastProps): JSX.Element; declare namespace ToastContainer { var defaultProps: ToastProps; } export default ToastContainer;