d968b24a165e5ffa162872844c7a2f26.json
1.72 KB
{"ast":null,"code":"var _interopRequireDefault=require(\"@babel/runtime/helpers/interopRequireDefault\");Object.defineProperty(exports,\"__esModule\",{value:true});exports.default=void 0;var _classCallCheck2=_interopRequireDefault(require(\"@babel/runtime/helpers/classCallCheck\"));var _createClass2=_interopRequireDefault(require(\"@babel/runtime/helpers/createClass\"));var _nativeEmitters=require(\"./nativeEmitters\");var SyntheticPlatformEmitter=function(){function SyntheticPlatformEmitter(){(0,_classCallCheck2.default)(this,SyntheticPlatformEmitter);this._emitter=new _nativeEmitters.RCTEventEmitter(_nativeEmitters.RCTDeviceEventEmitter.sharedSubscriber);}(0,_createClass2.default)(SyntheticPlatformEmitter,[{key:\"emit\",value:function emit(eventName,props){this._emitter.emit(eventName,props);}}]);return SyntheticPlatformEmitter;}();var _default=new SyntheticPlatformEmitter();exports.default=_default;","map":{"version":3,"sources":["../src/SyntheticPlatformEmitter.ts"],"names":[],"mappings":"yVAAA,gD,GAMM,CAAA,wB,YAAN,mCAAA,6DACE,KAAA,QAAA,CAAW,GAAI,gCAAJ,CAAoB,sCAAsB,gBAA1C,CAAX,CAKD,C,oFAHM,S,CAAmB,K,CAAU,CAChC,KAAK,QAAL,CAAc,IAAd,CAAmB,SAAnB,CAA8B,KAA9B,EACD,C,qDAGY,GAAI,CAAA,wBAAJ,E","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"],"sourceRoot":""},"metadata":{},"sourceType":"script"}