From f27a50762b572dca8f75a8a250c217c7b3ad7f13 Mon Sep 17 00:00:00 2001 From: Eric Lewis Date: Thu, 16 May 2019 16:17:16 -0400 Subject: [PATCH] [TM] Add spec for AnimationsDebugModule --- .../specs/NativeAnimationsDebugModule.js | 24 +++++++++++++++++++ 1 file changed, 24 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 000000000000..79f53c166d44 --- /dev/null +++ b/Libraries/NativeModules/specs/NativeAnimationsDebugModule.js @@ -0,0 +1,24 @@ +/** + * 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'; +import {Platform} from 'react-native'; + +export interface Spec extends TurboModule { + +startRecordingFps: () => void; + +stopRecordingFps: (animationStopTimeMs: number) => void; +} + +export default (Platform.OS === 'android' + ? TurboModuleRegistry.getEnforcing('AnimationsDebugModule') + : null);