native-base
Version:
Essential cross-platform UI components for React Native
20 lines (19 loc) • 634 B
TypeScript
import React from 'react';
import type { IToastProps } from './types';
export declare const ToastProvider: ({ children }: {
children: any;
}) => JSX.Element;
export declare const useToast: () => {
show: (props: IToastProps) => any;
close: (id: any) => void;
closeAll: () => void;
isActive: (id: any) => boolean;
};
export declare type IToastService = ReturnType<typeof useToast>;
export declare const ToastRef: React.MutableRefObject<{
show: (props: IToastProps) => any;
close: (id: any) => void;
closeAll: () => void;
isActive: (id: any) => boolean;
}>;
export declare const Toast: IToastService;