UNPKG

react-native-drawing

Version:

A React Native library that provides a canvas to perform drawing actions

19 lines (18 loc) 580 B
/** * Abstract class with the base infraestructure to manage Message Events */ export declare abstract class MessageEventDispatcher { private readonly messageEventIndex; /** * Launch events with the specified target * @param arg - data to be received by the event */ protected dispatchMessage(target: string, arg: unknown): Promise<unknown>; /** * Save handlers in the event index (for the specific target) */ onMessage(target: string, callback: MessageHandler): void; } export interface MessageHandler { (arg: unknown): unknown; }