Crash reporting · Crash reporting

Expo + Sentry

Sentry in an Expo SDK 57 app for iOS and Android, wired by one command and checked by doctor.

This reports crashes and handled errors to Sentry: src/lib/crash.ts calls Sentry.init once crash consent is given (only when the DSN is set, with environment from APP_VARIANT, errors only, no traces), crash.capture(err, ctx) maps to captureException with ctx as extra, and CrashBoundary is a Sentry.ErrorBoundary whose fallback is the kit's ErrorState with Retry. CrashProvider (order 40) mounts that boundary app-wide, with its own ThemeProvider since it sits above the ui provider. If you set up with --with-examples there's an example at /examples/crash and tests for both the capture path and the boundary. @/lib/crash keeps the same API whichever option you pick - Sentry is the one service option here, and it's what you want the moment real users can hit a bug you can't reproduce.

When to pick Sentry

Pick Sentry for the reports: JS and native crashes, breadcrumbs, source-mapped stack traces, and an error boundary whose fallback is the app's own ErrorState with Retry.

At a glance

Runs in Expo Go
Yes
Files added
5
npm packages
1
Keys to paste
EXPO_PUBLIC_SENTRY_DSN
Included in
Pro
Tests included
2

Set it up

bun run setup --crash sentry

Setup copies the module in, installs SDK-matched versions and removes the options you did not pick. Then bun run doctor lists every key still missing, with a link to where you get it. The step-by-step guide is in the Sentry docs.

Questions

Can I use Sentry in Expo Go?

Yes. This module runs in Expo Go, so you can try it before you make a development build.

What do I need to set up Sentry in an Expo app?

Run bun run setup --crash sentry, then paste one key into .env: EXPO_PUBLIC_SENTRY_DSN. bun run doctor lists any that are missing, with a link to where you get each one.

Does the ReadyNative free tier include Sentry?

No. Crash reporting is a Pro category: the free tier and Starter ship it switched off. Pro is one payment with lifetime updates.

Can I build the app without Sentry?

Yes. Pick none for crash reporting (bun run setup --crash none) - crash.capture is a no-op.

What does Sentry mean for the App Store and Google Play privacy forms?

It collects: Crash logs; Diagnostics (performance); Device info. Shared with: Sentry (processor). Setup adds its data types to the iOS privacy manifest; the docs page lists the answers for Play's Data safety form.

Which Sentry version does it install?

For Expo SDK 57: @sentry/react-native ~7.11.0. Setup installs Expo packages with expo install, so they match the SDK.

Get it

Sentry ships in Pro: one payment, lifetime updates. See pricing or browse every module.