Skip to content

Releases: getsentry/sentry-react-native

7.9.0

16 Jan 12:50

Choose a tag to compare

Features

  • Experimental support of UI profiling on Android (#5518)
  • Expose iOS options to ignore views from subtree traversal (#5545)
    • Use includedViewClasses to only traverse specific view classes, or excludedViewClasses to skip problematic view classes during session replay and screenshot capture
    import * as Sentry from '@sentry/react-native';
    
    Sentry.init({
      replaysSessionSampleRate: 1.0,
      integrations: [
        Sentry.mobileReplayIntegration({
          includedViewClasses: ['UILabel', 'UIView', 'MyCustomView'],
          excludedViewClasses: ['WKWebView', 'UIWebView'],
        }),
      ],
    });

Fixes

  • Fix duplicate error reporting on iOS with New Architecture (#5532)
  • Fix for missing replay_id from metrics (#5483)
  • Skip span ID check when standalone mode is enabled (#5493)
  • Fix traces not always being attached to replays with errors (#5538)

Dependencies

7.8.0

16 Dec 12:30

Choose a tag to compare

Features

  • Adds Metrics Beta (#5402)
  • Improves Expo Router integration to optionally include full paths to components instead of just component names (#5414)
  • Report slow and frozen frames as TTID/TTFD span data (#5419)
  • Report slow and frozen frames on spans created through the API (#5420)
  • Improve performance by adding caching to getReplayId (#5449)

Fixes

  • Fix Object.freeze type pollution from @sentry-internal/replay (#5408)

Dependencies

7.7.0

24 Nov 14:35
651d671

Choose a tag to compare

Features

  • Added logsOrigin to Sentry Options (#5354)
    • You can now choose which logs are captured: 'native' for logs from native code only, 'js' for logs from the JavaScript layer only, or 'all' for both layers.
    • Takes effect only if enableLogs is true and defaults to 'all', preserving previous behavior.
  • Add beforeErrorSampling callback to mobileReplayIntegration (#5393)

Fixes

  • Preserves interaction span context during app restart to allow proper replay capture (#5386)
  • Discard empty Route Change transactions (#5387)

Dependencies

7.6.0

11 Nov 08:27

Choose a tag to compare

Fixes

  • Android SDK not being disabled when options.enabled is set to false (#5334)
  • Fixes how bundle IDs are getting defined for individual bundles (#5342)

Dependencies

7.5.0

04 Nov 15:48

Choose a tag to compare

Features

  • Adds GraphQL integration (#5299)
  • Adds Supabase integration (#5296)
  • Add new experimental Canvas Capture Strategy for Session Replay (#5301)
    • A new screenshot capture strategy that uses Android's Canvas API for more accurate and reliable text and image masking
    • Any .drawText() or .drawBitmap() calls are replaced by rectangles, ensuring no text or images are present in the resulting output
    • Note: If this strategy is used, all text and images will be masked, regardless of any masking configuration
    • To enable this feature, set the screenshotStrategy to canvas:
      import * as Sentry from '@sentry/react-native';
      
      Sentry.init({
        integrations: [
          Sentry.mobileReplayIntegration({
            screenshotStrategy: 'canvas',
          }),
        ],
      });

Fixes

  • Fixes orientation change misalignment for session replay on Android (#5321)
  • Sync user.geo from SetUser to the native layer (#5302)

Dependencies

7.4.0 (Stable)

17 Oct 13:21

Choose a tag to compare

Features

  • Adds Console logs as Sentry Logs. (#5261)
  • Adds support for propagateTraceparent (#5277)

Fixes

  • Fix compatibility with react-native-legal (#5253)
    • The licenses json file is correctly generated and placed into the res/ folder now
  • Handle missing shouldAddToIgnoreList callback in Metro (#5260)
  • Overrides the default Cocoa SDK behavior that disables Session Replay on iOS 26.0 (#5268)

Dependencies

7.3.0

09 Oct 09:41

Choose a tag to compare

Features

  • Adds support for Gradle 9 (#5233)

Fixes

  • Updates sentry-xcode.sh and the default settings for the project.pbxproj to fix the issue with escape patterns in Xcode that leaded to errors during "Bundle React Native code and images" stage (#5221)
  • Fixes .env file loading in Expo sourcemap uploads (#5210)
  • Fixes the issue with changing immutable metadata structure in the contructor of ReactNativeClient. This structure is getting re-created instead of being modified to ensure IP address is only inferred by Relay if sendDefaultPii is true (#5202)
  • Removes usage of deprecated SafeAreaView (#5241)
  • Fixes session replay recording for uncaught errors (#5243)
  • Fixes TypeScript errors when using custom Metro configurations with Expo SDK 54 (#5246)

Dependencies

6.22.0 (Stable)

01 Oct 07:46

Choose a tag to compare

Fixes

  • Vendor metro/countLines function to avoid issues with the private import (#5185)
  • Fix baseJSBundle and bundleToString TypeErrors with Metro 0.83.2 (#5206)
  • Fixes .env file loading in Expo sourcemap uploads (#5210)

Dependencies

7.2.0 (Stable)

26 Sep 15:46
3a89136

Choose a tag to compare

Features

  • Enable logs on native side of iOS (#5190)
  • Add mobile replay attributes to logs (#5165)

Fixes

  • Vendor metro/countLines function to avoid issues with the private import (#5185)
  • Fix baseJSBundle and bundleToString TypeErrors with Metro 0.83.2 (#5206)

Dependencies

7.1.0 (Stable)

17 Sep 11:59

Choose a tag to compare

Fixes

  • Session Replay: Allow excluding sentry-android-replay from android targets (#5174)

    • If you are not interested in using Session Replay, you can exclude the sentry-android-replay module from your Android targets as follows (saves nearly 40KB compressed and 80KB uncompressed off the bundle size):
    // from the android's root build.gradle file
    subprojects {
      configurations.all {
        exclude group: 'io.sentry', module: 'sentry-android-replay'
      }
    }

Dependencies