From 9ea5496ccffe8408a52c966e2601322fc014b12c Mon Sep 17 00:00:00 2001 From: Antonis Lilis Date: Thu, 28 Nov 2024 13:42:48 +0200 Subject: [PATCH] Update CHANGELOG.md Co-authored-by: Krystof Woldrich <31292499+krystofwoldrich@users.noreply.github.com> --- CHANGELOG.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 65ea93baf..0f4cfc6fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,20 +12,18 @@ - Adds new `captureFeedback` and deprecates the `captureUserFeedback` API ([#4320](https://github.com/getsentry/sentry-react-native/pull/4320)) + ```jsx import * as Sentry from "@sentry/react-native"; - import { SendFeedbackParams } from "@sentry/react-native"; - const eventId = Sentry.captureMessage("My Message"); - // OR: const eventId = Sentry.lastEventId(); + const eventId = Sentry.lastEventId(); - const userFeedback: SendFeedbackParams = { + Sentry.captureFeedback({ name: "John Doe", email: "john@doe.com", message: "Hello World!", - associatedEventId: eventId,// Optional - }; - Sentry.captureFeedback(userFeedback); + associatedEventId: eventId, // optional + }); ``` ### Fixes