mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
580088c199
Summary: Part of #24875. ## Changelog [General] [Added] - TM add spec for NativeDeviceEventManager Pull Request resolved: https://github.com/facebook/react-native/pull/24914 Reviewed By: RSNara Differential Revision: D15421462 Pulled By: fkgozali fbshipit-source-id: 78b90c615cd031ecd010a552751e506406ab739a
21 lines
507 B
JavaScript
21 lines
507 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 strict-local
|
|
* @format
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
import type {TurboModule} from 'RCTExport';
|
|
import * as TurboModuleRegistry from 'TurboModuleRegistry';
|
|
|
|
export interface Spec extends TurboModule {
|
|
+invokeDefaultBackPressHandler: () => void;
|
|
}
|
|
|
|
export default TurboModuleRegistry.get<Spec>('DeviceEventManager');
|