mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
8c5cacf30e
Summary:
Changelog: [Internal]
Fixes some files to use the preferred `import type {Foo}` syntax instead of `import {type Foo}`.
Reviewed By: rh389
Differential Revision: D34001108
fbshipit-source-id: 64675fefa71b6832118eabc60c825c65b87514d9
24 lines
730 B
JavaScript
24 lines
730 B
JavaScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @flow strict
|
|
* @format
|
|
*/
|
|
|
|
import EventEmitter from '../vendor/emitter/EventEmitter';
|
|
import type {IEventEmitter} from '../vendor/emitter/EventEmitter';
|
|
|
|
// FIXME: use typed events
|
|
type RCTDeviceEventDefinitions = $FlowFixMe;
|
|
|
|
/**
|
|
* Global EventEmitter used by the native platform to emit events to JavaScript.
|
|
* Events are identified by globally unique event names.
|
|
*
|
|
* NativeModules that emit events should instead subclass `NativeEventEmitter`.
|
|
*/
|
|
export default (new EventEmitter(): IEventEmitter<RCTDeviceEventDefinitions>);
|