Skip to content

Remove deprecated Clipboard from the public API - #59062

Open
zoontek wants to merge 1 commit into
react:mainfrom
zoontek:remove-public-clipboard
Open

zoontek wants to merge 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

This branch has not been deployed

No deployments
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. 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.

1 participant