Skip to content

User Feedback and useSentryUser expected functionality #4896

@iffa

Description

@iffa

What React Native libraries do you use?

Expo Router

Are you using sentry.io or on-premise?

on-premise (Self-Hosted)

@sentry/react-native SDK Version

6.15.0

How does your development environment look like?

Expo SDK 53 + React Native 0.79.3

Sentry.init()

Sentry.init({
  enabled: SENTRY_ENABLED,
  dsn: process.env.EXPO_PUBLIC_SENTRY_DSN,
  tracesSampleRate: 0.5,
  profilesSampleRate: 1.0,
  integrations: [
    navigationIntegration,
    Sentry.feedbackIntegration({
      useSentryUser: {
        email: "email",
        name: "username",
      },
    }),
  ],
  enableNativeFramesTracking: !isRunningInExpoGo(),
});

Steps to Reproduce

Open feedback modal with showFeedbackWidget & see the email and name inputs being prefilled with email and username instead of actual data available from Sentry.setUser.

Even if I remove useSentryUser block completely, I get empty email & username fields even though we call Sentry.getUser when we receive user data (way before opening the feedback modal with showFeedbackWidget)

Expected Result

Fields should be populated with actual values from Sentry.setUser, right? If not, how can I manage that? The docs are vague.

Actual Result

Image

Metadata

Metadata

Assignees

Type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions