diff --git a/samples/react-native-macos/src/components/UserFeedbackModal.tsx b/samples/react-native-macos/src/components/UserFeedbackModal.tsx index 9ddb59ab49..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."; @@ -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..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."; @@ -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(); }} />