Skip to content

Commit f68d10d

Browse files
fix(replay): Mask RCTParagraphComponentView when maskAllText enabled (#4048)
1 parent 2a26ffa commit f68d10d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
### Fixes
1010

1111
- Use `install_modules_dependencies` for React iOS dependencies ([#4040](https://github.com/getsentry/sentry-react-native/pull/4040))
12+
- `Replay.maskAllText` masks `RCTParagraphComponentView` ([#4048](https://github.com/getsentry/sentry-react-native/pull/4048))
1213

1314
### Dependencies
1415

ios/RNSentryReplay.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ + (void)addReplayRNRedactClasses:(NSDictionary *_Nullable)replayOptions {
5757
if (maybeRCTTextClass != nil) {
5858
[classesToRedact addObject:maybeRCTTextClass];
5959
}
60+
Class _Nullable maybeRCTParagraphComponentViewClass = NSClassFromString(@"RCTParagraphComponentView");
61+
if (maybeRCTParagraphComponentViewClass != nil) {
62+
[classesToRedact addObject:maybeRCTParagraphComponentViewClass];
63+
}
6064
}
6165
[PrivateSentrySDKOnly addReplayRedactClasses:classesToRedact];
6266
}

0 commit comments

Comments
 (0)