react-native-ui-lib
Version:
[](https://stand-with-ukraine.pp.ua)
11 lines (10 loc) • 360 B
TypeScript
export default class EventEmitterManager {
handlerCallbacks: {
[key: string]: Function[];
};
constructor();
listenOn(eventName: string, handlerCallback: Function): void;
emitEvent(eventName: string, params?: {}): void;
removeListeners(eventName: string): void;
removeListener(eventName: string, listener: Function): void;
}