mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
a3479c212a
Summary: Part of #24875 ## Changelog [General] [Added] - Add TurboModule spec for ModalManager Pull Request resolved: https://github.com/facebook/react-native/pull/24896 Reviewed By: rickhanlonii Differential Revision: D15471097 Pulled By: fkgozali fbshipit-source-id: 99671583ddc2a6fc32fd1bcf9a6e340ad93a27c2
23 lines
553 B
JavaScript
23 lines
553 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.
|
|
*
|
|
* @flow
|
|
* @format
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
import type {TurboModule} from 'RCTExport';
|
|
import * as TurboModuleRegistry from 'TurboModuleRegistry';
|
|
|
|
export interface Spec extends TurboModule {
|
|
// RCTEventEmitter
|
|
+addListener: (eventName: string) => void;
|
|
+removeListeners: (count: number) => void;
|
|
}
|
|
|
|
export default TurboModuleRegistry.get<Spec>('ModalManager');
|