From 5213bf4ace9f3ade20b3ad2b20b2fb05e0b36fb7 Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Fri, 19 Jun 2026 16:05:52 +0100 Subject: [PATCH] fix(ios): remove unused React/RCTTextView.h import RCTTextView.h was removed from React Native 0.87 as part of the legacy architecture removal (facebook/react-native#56831), breaking the iOS build with "'React/RCTTextView.h' file not found". The import was unused: RCTTextView is only referenced as a runtime string (@"RCTTextView") for Session Replay text masking, so no symbol from the header is needed. Removing the import keeps masking working on both old and new React Native versions (@"RCTParagraphComponentView" already covers Fabric). --- CHANGELOG.md | 6 ++++++ packages/core/ios/RNSentryReplay.mm | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a3b958af5..6cb6192c07 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ > make sure you follow our [migration guide](https://docs.sentry.io/platforms/react-native/migration/) first. +## Unreleased + +### Fixes + +- Remove unused `React/RCTTextView.h` import that broke iOS builds on React Native 0.87, where the header was removed as part of the legacy architecture cleanup ([#6322](https://github.com/getsentry/sentry-react-native/pull/6322)) + ## 8.15.1 ### Fixes diff --git a/packages/core/ios/RNSentryReplay.mm b/packages/core/ios/RNSentryReplay.mm index c7adf33ebe..520aca6b9e 100644 --- a/packages/core/ios/RNSentryReplay.mm +++ b/packages/core/ios/RNSentryReplay.mm @@ -2,7 +2,6 @@ #import "RNSentryReplayBreadcrumbConverterHelper.h" #import "RNSentryReplayQuality.h" #import "RNSentryVersion.h" -#import "React/RCTTextView.h" #import "Replay/RNSentryReplayMask.h" #import "Replay/RNSentryReplayUnmask.h" #import