Skip to content

Commit

Permalink
fix(replay): Mask RCTParagraphComponentView when maskAllText enabled (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
krystofwoldrich authored Aug 27, 2024
1 parent 2a26ffa commit f68d10d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
### Fixes

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

### Dependencies

Expand Down
4 changes: 4 additions & 0 deletions ios/RNSentryReplay.m
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ + (void)addReplayRNRedactClasses:(NSDictionary *_Nullable)replayOptions {
if (maybeRCTTextClass != nil) {
[classesToRedact addObject:maybeRCTTextClass];
}
Class _Nullable maybeRCTParagraphComponentViewClass = NSClassFromString(@"RCTParagraphComponentView");
if (maybeRCTParagraphComponentViewClass != nil) {
[classesToRedact addObject:maybeRCTParagraphComponentViewClass];
}
}
[PrivateSentrySDKOnly addReplayRedactClasses:classesToRedact];
}
Expand Down

0 comments on commit f68d10d

Please sign in to comment.