Skip to content

[clipboard] Remove deprecated content event property#41739

Merged
barthap merged 3 commits intomainfrom
@barthap/clipboard/deprecated-content
Dec 23, 2025
Merged

[clipboard] Remove deprecated content event property#41739
barthap merged 3 commits intomainfrom
@barthap/clipboard/deprecated-content

Conversation

@barthap
Copy link
Copy Markdown
Contributor

@barthap barthap commented Dec 18, 2025

Why

This has been deprecated for ~10 SDK releases, and was returning an empty string anyway.

How

Removed the deprecated content event property and the wrapper listener. Added breaking change notice to changelog.

Test Plan

  • NCL
  • Tests on CI

Checklist

Copy link
Copy Markdown
Contributor Author

barthap commented Dec 18, 2025

@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Dec 18, 2025
@barthap barthap force-pushed the @barthap/clipboard/deprecated-content branch from 68c75b7 to f74e334 Compare December 18, 2025 16:13
@expo-bot expo-bot added bot: passed checks ExpoBot has nothing to complain about and removed bot: suggestions ExpoBot has some suggestions labels Dec 18, 2025
@barthap barthap force-pushed the @barthap/clipboard/deprecated-content branch from f74e334 to 30dde32 Compare December 19, 2025 12:04
@barthap barthap marked this pull request as ready for review December 19, 2025 12:35
@github-actions
Copy link
Copy Markdown
Contributor

Subscribed to pull request

File Patterns Mentions
packages/expo-clipboard/** @behenate

Generated by CodeMention

Copy link
Copy Markdown
Contributor Author

barthap commented Dec 23, 2025

Merge activity

  • Dec 23, 3:50 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Dec 23, 3:51 PM UTC: @barthap merged this pull request with Graphite.

@barthap barthap merged commit 952b6da into main Dec 23, 2025
11 of 12 checks passed
@barthap barthap deleted the @barthap/clipboard/deprecated-content branch December 23, 2025 15:51
barthap added a commit that referenced this pull request Dec 23, 2025
# Why

In #41739 I noticed that native `ExpoClipboard` module is any-typed

# How

Added TS types

# Test Plan

`et cp expo-clipboard`

# Checklist

- [x] I added a `changelog.md` entry and rebuilt the package sources according to [this short guide](https://github.com/expo/expo/blob/main/CONTRIBUTING.md#-before-submitting)
- [ ] This diff will work correctly for `npx expo prebuild` & EAS Build (eg: updated a module plugin).
- [ ] Conforms with the [Documentation Writing Style Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)
barthap added a commit that referenced this pull request Feb 27, 2026
# Why

Similar to #41739, the `Clipboard.setString()` has been deprecated for a long time.

# How

Removed the function and corresponding tests.
On web, left the legacy behavior fallback as a private API _(we should keep it there because of #17337 (comment) on Safari)_.

# Test Plan

- Test Suite
- Unit tests
- NCL

# Checklist

- [x] I added a `changelog.md` entry and rebuilt the package sources according to [this short guide](https://github.com/expo/expo/blob/main/CONTRIBUTING.md#-before-submitting)
- [ ] This diff will work correctly for `npx expo prebuild` & EAS Build (eg: updated a module plugin).
- [ ] Conforms with the [Documentation Writing Style Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot: fingerprint compatible bot: passed checks ExpoBot has nothing to complain about

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants