react-native-mmkv-storage
Version:
This library aims to provide a fast & reliable solution for you data storage needs in react-native apps. It uses [MMKV](https://github.com/Tencent/MMKV) by Tencent under the hood on Android and iOS both that is used by their WeChat app(more than 1 Billion
14 lines • 506 B
TypeScript
declare class EventManager {
_registry: {
[name: string]: Function[];
};
constructor();
unsubscribeAll(): void;
subscribeMulti(names: string[], handler: Function): void;
subscribe(name: string, handler: Function): void;
unsubscribe(name: string, handler: Function): void;
publish(name: string, ...args: any[]): void;
publishWithResult(name: string, ...args: any[]): Promise<true | any[]>;
}
export default EventManager;
//# sourceMappingURL=eventmanager.d.ts.map