npm @sentry/react-native 8.37.0

49 minutes ago

Features

  • Create the Android view managers of the SDK on demand, so React Native 0.89+ with the New Architecture does not build their view configs at startup (#7049)

  • Report MetricKit hangs on iOS as flame graph attachments with the experimental metricKitHangReportingMode option (#7059)

    • With flamegraphAttachment, the native SDK attaches the aggregated call trees of a MetricKit hang diagnostic as a flame graph, which the backend symbolicates. The default legacy mode reports the flattened call stack tree.
    Sentry.init({
      dsn: '__DSN__',
      enableMetricKit: true,
      metricKitHangReportingMode: 'flamegraphAttachment',
    });
  • Attach a flame graph of the sampled JS stacks to JS hang events on iOS with the experimental attachJsHangFlamegraph option (#7042)

    • The flame graph shows where the JS thread spent its time in the sample window of about 300 ms when the SDK detected the hang. It requires enableJsHangTracking and Hermes.
    • The frames in the flame graph are not yet symbolicated with source maps.
    Sentry.init({
      dsn: '__DSN__',
      enableJsHangTracking: true,
      attachJsHangFlamegraph: true,
    });
  • Add pauseTouchTracking() and resumeTouchTracking() to the Session Replay API (#7030)

    • Use them to stop recording touch positions on sensitive screens, for example a custom PIN pad. Screenshots and breadcrumbs continue to be recorded.
    • They are independent of pause() and resume(). Touch tracking stays paused across new replays until you call resumeTouchTracking().
    Sentry.getReplay()?.pauseTouchTracking();
    // Show the PIN pad.
    Sentry.getReplay()?.resumeTouchTracking();

Fixes

  • Capture render errors that no error boundary catches as fatal crashes on React Native 0.78+ (#7078)
    • React 19 reports these errors directly to React Native's ExceptionsManager and skips ErrorUtils, so before this fix the SDK lost them on Android and iOS.
  • Remove empty turbo_module.* tags from natively captured events to avoid ingestion processing errors (#7087)
  • Remove the web Session Replay and User Feedback packages from Android and iOS bundles by default, as announced in 5.32.0 (#7062)
    • Before this fix, includeWebReplay and includeWebFeedback defaulted to true, so these packages stayed in native bundles even though they never run there.
    • Web bundles keep both packages. Set the option to true to keep a package on all platforms, or to false to remove it on all platforms, including web.
  • Fix the TypeScript error Cannot find module 'react-native/Libraries/Types/CodegenTypes' with React Native 0.88 and skipLibCheck: false (#7061)
  • Sync the JavaScript trace to the native SDKs after they start, so native events and native HTTP spans share the app's trace before the first navigation, in the background and without tracing enabled (#7107)

Dependencies

Don't miss a new react-native release

NewReleases is sending notifications on new releases.