From 7ad0c1483cdad4cda08138ddbdc18903f16ce453 Mon Sep 17 00:00:00 2001 From: Krystof Woldrich <31292499+krystofwoldrich@users.noreply.github.com> Date: Tue, 3 Jun 2025 10:41:26 +0200 Subject: [PATCH 1/2] Update Feedback Drop 2 Changelog --- CHANGELOG.md | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 732b98d714..c162c3907e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,9 +10,30 @@ ### Features -- Adds the `FeedbackButton` component that shows the Feedback Widget ([#4378](https://github.com/getsentry/sentry-react-native/pull/4378)) -- Adds the `ScreenshotButton` component that takes a screenshot ([#4714](https://github.com/getsentry/sentry-react-native/issues/4714)) -- Add Feedback Widget theming ([#4677](https://github.com/getsentry/sentry-react-native/pull/4677)) +- User Feedback Widget Updates + - `FeedbackButton` for easy access to the widget ([#4378](https://github.com/getsentry/sentry-react-native/pull/4378)) + - `ScreenshotButton` for capturing the application visuals ([#4714](https://github.com/getsentry/sentry-react-native/issues/4714)) + - Theming support to better align with the application styles ([#4677](https://github.com/getsentry/sentry-react-native/pull/4677)) + + ```js + Sentry.init({ + integrations: [ + Sentry.feedbackIntegration({ + enableTakeScreenshot: true, // Enables `ScreenshotButton` + themeDark: { + // Add dark theme styles here + }, + themeLight: { + // Add light theme styles here + }, + }), + ], + }); + + Sentry.showFeedbackButton(); + Sentry.hideFeedbackButton(); + ``` + - Re-export `ErrorEvent` and `TransactionEvent` types ([#4859](https://github.com/getsentry/sentry-react-native/pull/4859)) ### Fixes From 971413ea56cb271b54a6c5147c4b48381a68e1e7 Mon Sep 17 00:00:00 2001 From: Krystof Woldrich <31292499+krystofwoldrich@users.noreply.github.com> Date: Tue, 3 Jun 2025 12:48:09 +0200 Subject: [PATCH 2/2] Update CHANGELOG.md Co-authored-by: Antonis Lilis --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c162c3907e..ef99e7328a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,6 +34,8 @@ Sentry.hideFeedbackButton(); ``` + To learn more visit [the documentation](https://docs.sentry.io/platforms/react-native/user-feedback). + - Re-export `ErrorEvent` and `TransactionEvent` types ([#4859](https://github.com/getsentry/sentry-react-native/pull/4859)) ### Fixes