From 9c9ed8984ebde0ac972868b6a4d9fe86d74c344d Mon Sep 17 00:00:00 2001 From: Nicholas Date: Thu, 19 Mar 2026 10:31:27 -0700 Subject: [PATCH 1/2] feat: Unmask button text and logo in Sentry session replay Wrap TouchableOpacity button labels and the Sentry logo with Sentry.Unmask so they remain visible in session replays despite maskAllText and maskAllImages being enabled globally. Made-with: Cursor --- src/screens/ListApp.tsx | 48 ++++++++++++++++++++++++++++++----------- 1 file changed, 35 insertions(+), 13 deletions(-) diff --git a/src/screens/ListApp.tsx b/src/screens/ListApp.tsx index b04d9e8..a3abb96 100644 --- a/src/screens/ListApp.tsx +++ b/src/screens/ListApp.tsx @@ -158,42 +158,54 @@ const ListApp = (props: Props) => { onPress={() => { Sentry.captureMessage('Test Message'); }}> - Capture Message + + Capture Message + { Sentry.captureException(new Error('Test Error')); }}> - Capture Exception + + Capture Exception + { throw new Error('Thrown Error'); }}> - Uncaught Thrown Error + + Uncaught Thrown Error + { Promise.reject(new Error('Unhandled Promise Rejection')); }}> - Unhandled Promise Rejection + + Unhandled Promise Rejection + { Sentry.nativeCrash(); }}> - Native Crash + + Native Crash + { setScopeProps(); }}> - Set Scope Properties + + Set Scope Properties + { onPress={() => { setShowBadCode(true); }}> - - Activate Error Boundary {showBadCode &&
} - + + + Activate Error Boundary {showBadCode &&
} + + @@ -215,14 +229,18 @@ const ListApp = (props: Props) => { onPress={() => { props.navigation.navigate('Tracker'); }}> - Auto Tracing Example + + Auto Tracing Example + { props.navigation.navigate('ManualTracker'); }}> - Manual Tracing Example + + Manual Tracing Example + { }), ); }}> - Performance Timing + + Performance Timing + { props.navigation.navigate('Redux'); }}> - Redux Example + + Redux Example + From 0f01bbfd698a05ffacba94579c2e2181183216d9 Mon Sep 17 00:00:00 2001 From: Nicholas Date: Thu, 19 Mar 2026 10:52:07 -0700 Subject: [PATCH 2/2] unmask report a bug button --- src/components/UserFeedbackModal.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/UserFeedbackModal.tsx b/src/components/UserFeedbackModal.tsx index 654cacc..e4d0cee 100644 --- a/src/components/UserFeedbackModal.tsx +++ b/src/components/UserFeedbackModal.tsx @@ -44,8 +44,12 @@ export const SentryUserFeedbackActionButton = () => { <> {feedbackState.isActionButtonVisible && ( - - Report a Bug + + + + + Report a Bug + )} {isFormVisible && (