NativeFrameRateLogger.js 685 B

123456789101112131415161718192021222324
  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. *
  7. * @format
  8. * @flow strict-local
  9. */
  10. import type {TurboModule} from '../TurboModule/RCTExport';
  11. import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry';
  12. export interface Spec extends TurboModule {
  13. +setGlobalOptions: (options: {|
  14. +debug?: ?boolean,
  15. +reportStackTraces?: ?boolean,
  16. |}) => void;
  17. +setContext: (context: string) => void;
  18. +beginScroll: () => void;
  19. +endScroll: () => void;
  20. }
  21. export default (TurboModuleRegistry.get<Spec>('FrameRateLogger'): ?Spec);