Skip to content

Commit

Permalink
Update CHANGELOG.md
Browse files Browse the repository at this point in the history
Co-authored-by: Krystof Woldrich <[email protected]>
  • Loading branch information
antonis and krystofwoldrich authored Nov 28, 2024
1 parent 0935bbd commit 9ea5496
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: "[email protected]",
message: "Hello World!",
associatedEventId: eventId,// Optional
};
Sentry.captureFeedback(userFeedback);
associatedEventId: eventId, // optional
});
```

### Fixes
Expand Down

0 comments on commit 9ea5496

Please sign in to comment.