sentry-react-native icon indicating copy to clipboard operation
sentry-react-native copied to clipboard

[Feature Request] Add text input masking

Open justynpollard1 opened this issue 9 months ago • 1 comments

Problem: I have a app that relies on Stripes customer sheet and payment sheets. Stripe replay does not currently allow me to mask these components individually, and the only way I am able to mask them currently is by masking all text in the app.

Solution?: I don't think it is currently possible without contribution from stripe to be able to change the masking of their sheets, but if the Sentry team could add a text input mask as well this would be very helpful in these cases as its only during input of sensitive information that needs to be mask.

justynpollard1 avatar Mar 05 '25 16:03 justynpollard1

@justynpollard1 thanks for reporting, we think we have an idea what's going on. We'll discuss if we can support this from the SDK side somehow and follow up here.

Two ideas came up:

  • provide way to configure specific native classes to be masked
  • provide way to unmask component+all descendants - that way you could enable masking of all text and then unmask e.g. the root component of the app to only keep your own app unmasked -> this is captured in a separate feature request now: https://github.com/getsentry/sentry-react-native/issues/4719

kahest avatar Mar 12 '25 16:03 kahest