@gluestack-ui/toast
Version:
A universal headless toast component for React Native, Next.js & React
12 lines (11 loc) • 415 B
TypeScript
import React from 'react';
import type { IToastProps } from './types';
export declare const ToastProvider: ({ children }: {
children: any;
}) => React.JSX.Element;
export declare const getToastHook: (StyledAnimationWrapper: any, StyledAnimatePresence: any) => () => {
show: (props: IToastProps) => string;
close: (id: string) => void;
closeAll: () => void;
isActive: (id: string) => boolean;
};