Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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.";

Expand Down Expand Up @@ -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();
}}
/>
Expand Down
10 changes: 5 additions & 5 deletions samples/react-native/src/components/UserFeedbackModal.tsx
Original file line number Diff line number Diff line change
@@ -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.";

Expand Down Expand Up @@ -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();
}}
/>
Expand Down
Loading