UNPKG

antd-mobile-rn

Version:

基于蚂蚁金服移动设计规范的 React Native 组件库

28 lines (27 loc) 782 B
import React from 'react'; import { Animated } from 'react-native'; import { IToastStyle } from './style/index.native'; 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]: import("react-native").RegisteredStyle<any>; }; }; anim: Animated.CompositeAnimation | null; constructor(props: ToastProps); componentDidMount(): void; componentWillUnmount(): void; render(): JSX.Element; }