From 2e40d25435eda63167acb8f90f0c1dce9ba71a10 Mon Sep 17 00:00:00 2001 From: Krystof Woldrich Date: Fri, 9 Dec 2022 16:25:08 +0100 Subject: [PATCH 1/2] Add last event id to the feedback example react-native --- .../user-feedback/sdk-api-example/react-native.mdx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/platform-includes/enriching-events/user-feedback/sdk-api-example/react-native.mdx b/src/platform-includes/enriching-events/user-feedback/sdk-api-example/react-native.mdx index bc9bd3eec8b75..4ae421f72c3d2 100644 --- a/src/platform-includes/enriching-events/user-feedback/sdk-api-example/react-native.mdx +++ b/src/platform-includes/enriching-events/user-feedback/sdk-api-example/react-native.mdx @@ -2,7 +2,8 @@ import * as Sentry from '@sentry/react-native'; import { UserFeedback } from '@sentry/react-native'; -const sentryId = Sentry.captureMessage('My Message'); +const sentryId = Sentry.lastEventId(); +// OR: const sentryId = Sentry.captureMessage('My Message'); const userFeedback: UserFeedback = { event_id: sentryId, From c444b807bb81191433398eaa3eb8531bc3913e21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kry=C5=A1tof=20Wold=C5=99ich?= <31292499+krystofwoldrich@users.noreply.github.com> Date: Tue, 20 Dec 2022 15:00:30 +0100 Subject: [PATCH 2/2] Update src/platform-includes/enriching-events/user-feedback/sdk-api-example/react-native.mdx Co-authored-by: Manoel Aranda Neto <5731772+marandaneto@users.noreply.github.com> --- .../user-feedback/sdk-api-example/react-native.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform-includes/enriching-events/user-feedback/sdk-api-example/react-native.mdx b/src/platform-includes/enriching-events/user-feedback/sdk-api-example/react-native.mdx index 4ae421f72c3d2..055b943fc4011 100644 --- a/src/platform-includes/enriching-events/user-feedback/sdk-api-example/react-native.mdx +++ b/src/platform-includes/enriching-events/user-feedback/sdk-api-example/react-native.mdx @@ -2,8 +2,8 @@ import * as Sentry from '@sentry/react-native'; import { UserFeedback } from '@sentry/react-native'; -const sentryId = Sentry.lastEventId(); -// OR: const sentryId = Sentry.captureMessage('My Message'); +const sentryId = Sentry.captureMessage('My Message'); +// OR: const sentryId = Sentry.lastEventId(); const userFeedback: UserFeedback = { event_id: sentryId,