npm @sentry/react-native 8.4.0

9 hours ago

Fixes

  • Pass screenshotStrategy option from mobileReplayIntegration to the Android native SDK (#5808)

Features

  • Add wrapExpoImage and wrapExpoAsset for Expo performance monitoring (#5427)
    • wrapExpoImage instruments Image.prefetch and Image.loadAsync from expo-image
    • wrapExpoAsset instruments Asset.loadAsync from expo-asset
    import { Image } from 'expo-image';
    import { Asset } from 'expo-asset';
    import * as Sentry from '@sentry/react-native';
    
    Sentry.wrapExpoImage(Image);
    Sentry.wrapExpoAsset(Asset);
  • Adds tags with Expo Updates context variables to make them searchable and filterable (#5788)
  • Automatically capture a warning event when Expo Updates performs an emergency launch (#5794)
  • Adds environment configuration in the Expo config plugin. This can be set with the SENTRY_ENVIRONMENT env variable or in sentry.options.json (#5796)
    ["@sentry/react-native/expo", {
      "useNativeInit": true,
      "options": {
        "environment": "staging"
      }
    }]
  • Generate sentry.options.json from the Expo config plugin options property (#5804)
    ["@sentry/react-native/expo", {
      "useNativeInit": true,
      "options": {
        "dsn": "https://key@sentry.io/123",
        "tracesSampleRate": 1.0
      }
    }]

Fixes

  • Defer initial navigation span creation until navigation container is registered (#5789)
  • Exclude server-only AI/MCP modules from native bundles, reducing bundle size by ~150kb (#5802)

Dependencies

Don't miss a new react-native release

NewReleases is sending notifications on new releases.