Skip to content

SDK doesn't work on Expo Go when enableNative is set to true #5734

@lucas-zimerman

Description

@lucas-zimerman

What React Native libraries do you use?

Expo (mobile only)

Are you using sentry.io or on-premise?

sentry.io (SaS)

@sentry/react-native SDK Version

latest

How does your development environment look like?

I noticed this when our Expo sample wasn't sending any events lately.
Turned out it was due to app.json configuration with "useNativeInit": true.

The question is, should we force useNativeInit to always be false on Expo GO?

Sentry.init()

Sentry.init({
  dsn: 'https://...@sentry.io/...'
  // other options
});

Steps to Reproduce

just run the expo sample app with yarn android and you will notice that no events /transactions are being recorded.

Expected Result

events and transactions recorded.

Actual Result

they are only shown on spotlight and that's it

Metadata

Metadata

Assignees

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions