RCTEventEmitter.js 470 B

123456789101112131415161718192021
  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. *
  7. * @format
  8. * @flow
  9. */
  10. 'use strict';
  11. const BatchedBridge = require('../BatchedBridge/BatchedBridge');
  12. const RCTEventEmitter = {
  13. register(eventEmitter: any) {
  14. BatchedBridge.registerCallableModule('RCTEventEmitter', eventEmitter);
  15. },
  16. };
  17. module.exports = RCTEventEmitter;