RCTNativeAppEventEmitter.js 571 B

1234567891011121314151617181920
  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 strict-local
  9. */
  10. 'use strict';
  11. const RCTDeviceEventEmitter = require('./RCTDeviceEventEmitter');
  12. /**
  13. * Deprecated - subclass NativeEventEmitter to create granular event modules instead of
  14. * adding all event listeners directly to RCTNativeAppEventEmitter.
  15. */
  16. const RCTNativeAppEventEmitter = RCTDeviceEventEmitter;
  17. module.exports = RCTNativeAppEventEmitter;