UNPKG

941 BSource Map (JSON)View Raw
1{"version":3,"file":"SyntheticPlatformEmitter.js","sourceRoot":"","sources":["../src/SyntheticPlatformEmitter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAE1E;;;GAGG;AACH,MAAM,wBAAwB;IAA9B;QACE,aAAQ,GAAG,IAAI,eAAe,CAAC,qBAAqB,CAAC,gBAAgB,CAAC,CAAC;IAKzE,CAAC;IAHC,IAAI,CAAC,SAAiB,EAAE,KAAU;QAChC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;IACvC,CAAC;CACF;AAED,eAAe,IAAI,wBAAwB,EAAE,CAAC","sourcesContent":["import { RCTDeviceEventEmitter, RCTEventEmitter } from './nativeEmitters';\n\n/**\n * This emitter is used for sending synthetic native events to listeners\n * registered in the API layer with `NativeEventEmitter`.\n */\nclass SyntheticPlatformEmitter {\n _emitter = new RCTEventEmitter(RCTDeviceEventEmitter.sharedSubscriber);\n\n emit(eventName: string, props: any): void {\n this._emitter.emit(eventName, props);\n }\n}\n\nexport default new SyntheticPlatformEmitter();\n"]}
\No newline at end of file