From bc00b351828d726cac4134ac172cb3792856a77e Mon Sep 17 00:00:00 2001 From: Antonis Lilis Date: Wed, 17 Dec 2025 10:58:20 +0100 Subject: [PATCH 1/2] fix(sample): Fix deprecated user feedback call in the sample app --- .../src/components/UserFeedbackModal.tsx | 8 ++++---- samples/react-native/src/components/UserFeedbackModal.tsx | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/samples/react-native-macos/src/components/UserFeedbackModal.tsx b/samples/react-native-macos/src/components/UserFeedbackModal.tsx index 9ddb59ab49..23b447d201 100644 --- a/samples/react-native-macos/src/components/UserFeedbackModal.tsx +++ b/samples/react-native-macos/src/components/UserFeedbackModal.tsx @@ -36,14 +36,14 @@ export function UserFeedbackModal(props: { onDismiss: () => void }) { 'Message that needs user feedback', ); - const userFeedback: UserFeedback = { - event_id: sentryId, + const userFeedback: SendFeedbackParams = { + associatedEventId: sentryId, name: 'John Doe', email: 'john@doe.com', - comments, + message: comments, }; - Sentry.captureUserFeedback(userFeedback); + Sentry.captureFeedback(userFeedback); clearComments(); }} /> diff --git a/samples/react-native/src/components/UserFeedbackModal.tsx b/samples/react-native/src/components/UserFeedbackModal.tsx index 9ddb59ab49..23b447d201 100644 --- a/samples/react-native/src/components/UserFeedbackModal.tsx +++ b/samples/react-native/src/components/UserFeedbackModal.tsx @@ -36,14 +36,14 @@ export function UserFeedbackModal(props: { onDismiss: () => void }) { 'Message that needs user feedback', ); - const userFeedback: UserFeedback = { - event_id: sentryId, + const userFeedback: SendFeedbackParams = { + associatedEventId: sentryId, name: 'John Doe', email: 'john@doe.com', - comments, + message: comments, }; - Sentry.captureUserFeedback(userFeedback); + Sentry.captureFeedback(userFeedback); clearComments(); }} /> From 4b8cf83388f10fc44470e99530a3b5161d888a34 Mon Sep 17 00:00:00 2001 From: Antonis Lilis Date: Wed, 17 Dec 2025 11:13:56 +0100 Subject: [PATCH 2/2] lint: removed unused import --- samples/react-native-macos/src/components/UserFeedbackModal.tsx | 2 +- samples/react-native/src/components/UserFeedbackModal.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/react-native-macos/src/components/UserFeedbackModal.tsx b/samples/react-native-macos/src/components/UserFeedbackModal.tsx index 23b447d201..b9acf334db 100644 --- a/samples/react-native-macos/src/components/UserFeedbackModal.tsx +++ b/samples/react-native-macos/src/components/UserFeedbackModal.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { View, StyleSheet, Text, TextInput, Image, Button } from 'react-native'; import * as Sentry from '@sentry/react-native'; -import { SendFeedbackParams, UserFeedback } from '@sentry/react-native'; +import { SendFeedbackParams } from '@sentry/react-native'; export const DEFAULT_COMMENTS = "It's broken again! Please fix it."; diff --git a/samples/react-native/src/components/UserFeedbackModal.tsx b/samples/react-native/src/components/UserFeedbackModal.tsx index 23b447d201..b9acf334db 100644 --- a/samples/react-native/src/components/UserFeedbackModal.tsx +++ b/samples/react-native/src/components/UserFeedbackModal.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { View, StyleSheet, Text, TextInput, Image, Button } from 'react-native'; import * as Sentry from '@sentry/react-native'; -import { SendFeedbackParams, UserFeedback } from '@sentry/react-native'; +import { SendFeedbackParams } from '@sentry/react-native'; export const DEFAULT_COMMENTS = "It's broken again! Please fix it.";