Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: replaced deprecated Clipboard to @react-native-clipboard/clipboard #5808

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hamshad
Copy link

@hamshad hamshad commented May 27, 2024

Summary

The Clipboard from 'react-native' is deprecated

react native clipboard removed

I added the @react-native-clipboard/clipboard library and updated the code in src\hooks\useClipboard.ts.

Changelog

Internal Deprecated - Replaced the deprecated Clipboard

Test Plan

yarn test

Test Suites: 7 failed, 7 passed, 14 total
Tests:       29 passed, 29 total
Snapshots:   0 total
Time:        7.396s, estimated 13s
Ran all test suites.

@auto-assign auto-assign bot requested a review from rayan1810 May 27, 2024 09:01
Copy link

vercel bot commented May 27, 2024

@hamshad is attempting to deploy a commit to the Geekyants Team Team on Vercel.

A member of the Team first needs to authorize it.

@hamshad hamshad marked this pull request as draft May 27, 2024 09:05
@hamshad hamshad marked this pull request as ready for review May 27, 2024 09:06
@auto-assign auto-assign bot requested a review from surajahmed May 27, 2024 09:06
@@ -1,12 +1,13 @@
import React from 'react';
import { Clipboard } from 'react-native';
// import { Clipboard } from 'react-native'; 'Clipboard' is deprecated.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think maybe u should remove this comment, is unnecessary...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants