Sentry React Native SDK adds automatic Expo Router observability
Brief
Sentry's latest React Native SDK adds Expo-focused navigation, error and performance instrumentation, much of it without changes to route files.
Navigation and route errors
- expoRouterIntegration() automatically registers Expo Router observability, traces screen navigation and can correlate deep links with the navigation they trigger.
- Sentry.wrapExpoRouter() adds breadcrumbs and spans for imperative navigation methods. Route identifiers that may contain user data are gated by sendDefaultPii.
- The Babel plugin can wrap Expo Router ErrorBoundaries at build time, capturing route errors without editing each route file.
Performance and network monitoring
- Sentry.reportFullyDisplayed() records Time to Full Display, complementing Time to Initial Display.
- Expo Updates listener spans record app.update.check and app.update.download durations.
- For Expo SDK 56+ native fetch, the SDK now captures network requests directly, once per request, without requiring app changes.
Setup
- The changes ship in the latest @sentry/react-native, installable with npx expo install @sentry/react-native.
- Expo builds also get a dedicated @sentry/expo-upload-sourcemaps package and a Metro startup warning if a prebuilt native project lacks Sentry configuration.
Generated by AI from the original article. Check the source for full details.