UNPKG

react-native-actions-sheet-fork

Version:

A Cross Platform (Android & iOS) ActionSheet with robust and flexible API, native performance, and zero dependency code for React Native. Forked version.

21 lines 687 B
export type EventHandler = (...args: any[]) => void; export type EventHandlerSubscription = { unsubscribe: () => void; }; declare class EventManager { _registry: Map<EventHandler, { name: string; once: boolean; }>; constructor(); unsubscribeAll(): void; subscribe(name: string, handler: EventHandler, once?: boolean): { unsubscribe: () => boolean; }; unsubscribe(_name: string, handler: EventHandler): boolean; publish(name: string, ...args: any[]): void; remove(...names: string[]): void; } export default EventManager; export declare const actionSheetEventManager: EventManager; //# sourceMappingURL=eventmanager.d.ts.map