@td-design/react-native
Version:
react-native UI组件库
21 lines • 727 B
TypeScript
/// <reference types="react" />
import { ToastProps } from './type';
export interface ToastRef {
show: (params: ToastProps) => void;
hide: () => void;
}
declare function Toast(): JSX.Element;
declare namespace Toast {
var displayName: string;
var hide: () => void;
var top: ({ duration, content }: Partial<ToastProps>) => void;
var middle: ({ duration, content }: Partial<ToastProps>) => void;
var bottom: ({ duration, content }: Partial<ToastProps>) => void;
var process: (content?: string) => void;
var custom: (props: Omit<ToastProps, "indicator">) => void;
var SHORT: number;
var LONG: number;
var INFINITY: number;
}
export default Toast;
//# sourceMappingURL=index.d.ts.map