@ant-design/react-native
Version:
基于蚂蚁金服移动设计规范的 React Native 组件库
25 lines (24 loc) • 747 B
TypeScript
import React from 'react';
import { Animated } from 'react-native';
import { WithThemeStyles } from '../style';
import { ToastStyle } from './style/index';
export interface ToastProps extends WithThemeStyles<ToastStyle> {
content: string | React.ReactNode;
duration?: number;
onClose?: () => void;
mask?: boolean;
type?: string;
onAnimationEnd?: () => void;
}
export default class ToastContainer extends React.Component<ToastProps, any> {
static defaultProps: {
duration: number;
mask: boolean;
onClose(): void;
};
anim: Animated.CompositeAnimation | null;
constructor(props: ToastProps);
componentDidMount(): void;
componentWillUnmount(): void;
render(): JSX.Element;
}