getsentry / getsentry/sentry-react-native

[SR] Recursive unmasking

Open
#4,719 7 comments 6 reactions 0 assignees View on GitHub
Explore > Replays Feature React-Native Replays
Dominant language
TypeScript
Stars
1.8k
Forks
366
Avg merge
1d 9h
Merged PRs (30d)
89

Description

### Problem Statement

Currently, [unmasking a component](https://docs.sentry.io/platforms/react-native/session-replay/privacy/#general-masking-rules) affects only the component directly wrapped with ``. For some use cases where the actual text components are two or more levels down in a nested component tree, this can become cumbersome and may also require unwanted updates to component code (e.g. several levels into a Button component - user wants to unmask the button label).

### Solution Brainstorm

Provide an API to mark a component for unmasking recursively.

Note: There was a conscious decision not do to this initially, because it makes it easy to unmask more than intended. If this is implemented, it should be very clear to the user what happens, and very hard/impossible to do it unintentionally.

E.g. something like `` (default: false)

---

There is currently no priority for this item. If you are interested in this, please upvote the issue 👍

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.