-
-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Krystof Woldrich <[email protected]>
- Loading branch information
1 parent
0935bbd
commit 9ea5496
Showing
1 changed file
with
5 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|