NativeClipboard.js 612 B

12345678910111213141516171819202122
  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. * @flow strict-local
  8. * @format
  9. */
  10. 'use strict';
  11. import type {TurboModule} from '../../TurboModule/RCTExport';
  12. import * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry';
  13. export interface Spec extends TurboModule {
  14. +getConstants: () => {||};
  15. +getString: () => Promise<string>;
  16. +setString: (content: string) => void;
  17. }
  18. export default (TurboModuleRegistry.getEnforcing<Spec>('Clipboard'): Spec);