mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
c7463f0059
Summary: Migrates all usages of `NativeEventEmitter` to `NativeEventEmitter<$FlowFixMe>`. This prevents having to modify a very large number of files in the same change that adds support for typed events. It adds an unused typed parameter to `NativeEventEmitter` so we can change all usages to add `$FlowFixMe`. Changelog: [Internal] Reviewed By: nadiia Differential Revision: D25575774 fbshipit-source-id: c7979e1502e980401d9c03456282eba333c1606d
22 lines
579 B
JavaScript
22 lines
579 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 NativeEventEmitter from '../../EventEmitter/NativeEventEmitter';
|
|
import NativeStatusBarManagerIOS from './NativeStatusBarManagerIOS';
|
|
|
|
/**
|
|
* Use `StatusBar` for mutating the status bar.
|
|
*/
|
|
class StatusBarIOS extends NativeEventEmitter<$FlowFixMe> {}
|
|
|
|
module.exports = (new StatusBarIOS(NativeStatusBarManagerIOS): StatusBarIOS);
|