@uiw/react-native
Version:
UIW for React Native
19 lines (18 loc) • 557 B
TypeScript
import React from '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): React.JSX.Element;
declare namespace ToastContainer {
var defaultProps: ToastProps;
}
export default ToastContainer;