Skip to content

Remove deprecated Clipboard from the public API - #59062

Merged
meta-codesync[bot] merged 1 commit into
react:mainfrom
zoontek:remove-public-clipboard
Nov 4, 2026
Merged

meta-codesync[bot] merged 1 commit into
react:mainfrom
zoontek:remove-public-clipboard

Conversation

@zoontek

@zoontek zoontek commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

Summary:

Clipboard has been deprecated since it moved to @react-native-clipboard/clipboard. This PR removes it from the public API.

LogBox still uses it to copy logs, so I kept the internal module and the native modules. In dev, accessing Clipboard from react-native now throws an error that points to the community package.

Changelog:

[GENERAL] [BREAKING] - Remove deprecated Clipboard from the public API

Test Plan:

Commands I ran, and their results:

  • yarn flow-check: 0 errors
  • yarn build-types && yarn test-generated-typescript: passed
  • yarn eslint on changed JS files: clean
  • yarn test packages/eslint-plugin-react-native packages/react-native-babel-preset packages/react-native/Libraries/LogBox: 270 tests passed

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 14, 2026
@github-actions

Copy link
Copy Markdown

Warning

JavaScript API change detected

This PR commits an update to ReactNativeApi.d.ts, indicating a change to React Native's public JavaScript API.

  • Please include a clear changelog message.
  • This change will be subject to additional review.

This change was flagged as: BREAKING

@facebook-github-tools facebook-github-tools Bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Oct 14, 2026
# Conflicts:
#	packages/react-native/ReactNativeApi.d.ts
@zoontek
zoontek force-pushed the remove-public-clipboard branch from be30f5b to 04332ee Compare November 3, 2026 10:22
@meta-codesync

meta-codesync Bot commented Nov 4, 2026

Copy link
Copy Markdown

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this in D129616273.

@cortinico cortinico left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Review automatically exported from Phabricator review in Meta.

@meta-codesync
meta-codesync Bot merged commit 418fc56 into react:main Nov 4, 2026
94 of 95 checks passed
@react-native-bot react-native-bot added the Merged This PR has been merged. label Nov 4, 2026
@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @zoontek in 418fc56

When will my fix make it into a release? | How to file a pick request?

@zoontek
zoontek deleted the remove-public-clipboard branch November 4, 2026 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. p: Expo Partner: Expo Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants