From 00fe438003150c4716d107f0bcd5610e364e4ff9 Mon Sep 17 00:00:00 2001 From: Eric Lewis Date: Mon, 20 May 2019 18:00:34 -0700 Subject: [PATCH] Add spec for AnimationsDebugModule (#24915) Summary: Part of #24875. ## Changelog [General] [Added] - Add TM spec for AnimationsDebugModule Pull Request resolved: https://github.com/facebook/react-native/pull/24915 Reviewed By: RSNara Differential Revision: D15421499 Pulled By: fkgozali fbshipit-source-id: f52780773f5947097b75c4d776a0b80e0bc1d387 --- .../specs/NativeAnimationsDebugModule.js | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Libraries/NativeModules/specs/NativeAnimationsDebugModule.js diff --git a/Libraries/NativeModules/specs/NativeAnimationsDebugModule.js b/Libraries/NativeModules/specs/NativeAnimationsDebugModule.js new file mode 100644 index 0000000000..792a6d47d0 --- /dev/null +++ b/Libraries/NativeModules/specs/NativeAnimationsDebugModule.js @@ -0,0 +1,21 @@ +/** + * 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 { + +startRecordingFps: () => void; + +stopRecordingFps: (animationStopTimeMs: number) => void; +} + +export default TurboModuleRegistry.get('AnimationsDebugModule');