@equinor/mad-toast
Version:
Toast package built on top of `react-native-toast-message`
13 lines (12 loc) • 426 B
TypeScript
import { AddToastOptions } from "./types";
type Subscriber = () => void;
export declare class ToastQueue {
private static queue;
private static subscribers;
private static emitChange;
static subscribe: (subscriber: Subscriber) => () => void;
static getSnapshot: () => AddToastOptions[];
static enqueue: (item: AddToastOptions) => void;
static shift: () => AddToastOptions | undefined;
}
export {};