Open WeiTeck13 opened 2 weeks ago
wow, bots.
Also this error means that the package has a dependency on older versions of React, the latest version 18.3.1 isn't supported yet, which sucks, I'm also in the same boat.
edit looks like you can still use the old API method, I don't think it's being removed until React 19 https://reactnative.dev/docs/clipboard
How can be use this? I can't install this package other core package is a deprecated. How can i add ?
just go with --legacy-peer-deps. i know its not good way. but go head is better then stuck.. hope in next version it will be resolved.
If you’re encountering issues with React Native versions above 0.73, consider trying an alternative package like expo-clipboard (available at npm).
Alternatively, you could downgrade React Native to version 0.73.0 to avoid these issues, but be aware that this may introduce other errors or compatibility problems.
I don't understand nothing, here in https://reactnative.dev/docs/clipboard version 0.75 says:
Removed. Use one of the community packages instead.
But you try to use the react-native-clipboard/clipboard
in version 0.75, says is not compatible?
I don't understand nothing, here in https://reactnative.dev/docs/clipboard version 0.75 says:
Removed. Use one of the community packages instead.
But you try to use the
react-native-clipboard/clipboard
in version 0.75, says is not compatible?
Can you explain more about what you are facing ?
seems like you are referring to 0.75 version of react native
Im using https://react-native-community.github.io/upgrade-helper/?from=0.74.5&to=0.75.2
"react": "18.3.1",
"react-native": "0.75.2"
and i don't use expo
-- Extra -- if like to know why, that is what i think
just found that fork https://github.com/bravetechnologycoop/clipboard-react-18.3 is that what need to do? https://github.com/bravetechnologycoop/clipboard-react-18.3/commit/7547b67d0e78898840e11bbdbce7b5ae79d4e563
and i don't use expo
-- Extra -- if like to know why, that is what i think
I understand that you don't use Expo, and that's perfectly fine—it's a matter of personal preference whether you choose React Native CLI or Expo.
However, it's worth noting that the landscape for Expo has evolved significantly over the past four years. If you're interested, you can read more about these changes and how Expo has improved:
A Reddit discussion from 2024 about who is using Expo Another discussion highlighting how Expo has evolved [To Expo or not to Expo?] https://www.reddit.com/r/reactnative/comments/1dejx21/to_expo_or_not_to_expo/ These resources provide insight into how Expo has grown and the benefits it now offers.
I perform
npm install --save @react-native-clipboard/clipboard
and receive the following error:I am not very sure why this happens. Can you please help me? Thank you.