GeekyAnts / GeekyAnts/NativeBase

Clipboard has been extracted from react-native core

Open
#5,221 2 comments 0 reactions 0 assignees View on GitHub
feature request triage v3
Dominant language
TypeScript
Stars
20.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

### Description

The clipboard separated from the launch vehicle into a separate package. There was a similar problem last year. You fixed it in the patch and closed the issue on the git. But 10 months ago you brought the clipboard import back from RN.
Why?
The logbox warnings say this is deprecated and later they will remove the clipboard from the PH altogether.
The @react-native-clipboard/clipboard package works great. Use it.
I like to use your library instead of a lot of others, but for now I have to use my custom hook for the reliability of the system.

### Problem Statement

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

### Proposed Solution or API

Change
`import { Clipboard } from 'react-native';`
to
`import Clipboard from '@react-native-clipboard/clipboard';`

### Alternatives

_No response_

### Additional Information

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.