@codebayu/react-native-toast
Version:
The Package for creating dynamic and reusable styles in React Native App
23 lines • 861 B
TypeScript
import { ToastOptions, ToastRef, ToastType } from './types';
declare class ToastManagerSingleton {
private static instance;
private toastRef;
private isAnimating;
private queue;
private lastToastTime;
private constructor();
/** Get the singleton instance of ToastManager. */
static getInstance(): ToastManagerSingleton;
setToastRef(ref: ToastRef | null): void;
setAnimating(isAnimating: boolean): void;
/** Process queued toast messages */
private processQueue;
/** Show a toast message. */
show(message: string, type?: ToastType, options?: ToastOptions): void;
/** Hide the currently visible toast. */
hide(callback?: () => void): void;
}
/** Singleton instance to manage toasts globally. */
export declare const ToastManager: ToastManagerSingleton;
export {};
//# sourceMappingURL=state.d.ts.map