/
githubmr
/
facebook-react-native
Обзор
Документация
Войти
/
githubmr
/
facebook-react-native
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
packages/react-native/Libraries/Components/Clipboard/Clipboard.d.ts
28 строк
968 B
Tomáš Hübelbauer
Refer to the correct community package in the Clipboard deprecation notice (#36914)
17 апр 2023, 13:47
17 апр 2023, 13:47
ee2f488
Код
Авторство
О чём код?
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ export interface ClipboardStatic { getString(): Promise<string>; setString(content: string): void; } /** * Clipboard has been extracted from react-native core and will be removed in a future release. * It can now be installed and imported from `@react-native-clipboard/clipboard` instead of 'react-native'. * @see https://github.com/react-native-clipboard/clipboard * @deprecated */ export const Clipboard: ClipboardStatic; /** * Clipboard has been extracted from react-native core and will be removed in a future release. * It can now be installed and imported from `@react-native-clipboard/clipboard` instead of 'react-native'. * @see https://github.com/react-native-clipboard/clipboard * @deprecated */ export type Clipboard = ClipboardStatic;