mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
4a1820dbdf
Summary: Upgrades `require` expressions of `NativeEventEmitter` and `RCTDeviceEventEmitter` to `import`. Changelog: [Internal] Reviewed By: cpojer Differential Revision: D22203919 fbshipit-source-id: 4fdf01b66ba0501d0e0714931923531c97d29be2
21 lines
566 B
JavaScript
21 lines
566 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @format
|
|
* @flow strict-local
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
import RCTDeviceEventEmitter from './RCTDeviceEventEmitter';
|
|
|
|
/**
|
|
* Deprecated - subclass NativeEventEmitter to create granular event modules instead of
|
|
* adding all event listeners directly to RCTNativeAppEventEmitter.
|
|
*/
|
|
const RCTNativeAppEventEmitter = RCTDeviceEventEmitter;
|
|
module.exports = RCTNativeAppEventEmitter;
|