artwork-react-native
Version:
artwork design master for react-native
31 lines (30 loc) • 787 B
TypeScript
/// <reference types="react" />
/// <reference types="react-native" />
import React from 'react';
import { IToastStyle } from './style';
export interface ToastProps {
content: string;
duration?: number;
onClose?: () => void;
mask?: boolean;
type?: string;
onAnimationEnd?: () => void;
styles?: IToastStyle;
}
export default class ToastContainer extends React.Component<ToastProps, any> {
static defaultProps: {
duration: number;
mask: boolean;
onClose(): void;
styles: {
[x: string]: number & {
__registeredStyleBrand: any;
};
};
};
anim: any;
constructor(props: any);
componentDidMount(): void;
componentWillUnmount(): void;
render(): JSX.Element;
}