github getsentry/sentry-react-native 8.32.0

6 hours ago

Features

  • Connect React Native traces with embedded WebViews via sentryWebViewProps (#6794)

    import { sentryWebViewProps } from '@sentry/react-native';
    
    <WebView
      source={{ uri: 'https://example.com' }}
      {...sentryWebViewProps({ allowedHosts: ['example.com'] })}
    />

Fixes

  • Find ios/.xcode.env in the Expo plugin "Upload Debug Symbols to Sentry" phase when the iOS project uses Swift Package Manager instead of CocoaPods (#6911)
  • Fix HTTP timing listeners leaking on React Native below 0.83 and when expo/fetch is detected, and respect the enableHTTPTimings option (#6912)
  • Remove the @sentry/browser feedback modules and the server-only @sentry/core modules from native bundles built on Windows. Before this fix, includeWebFeedback: false made these bundles fail at launch (#6915)
  • Stop wrapping the SDK's own RNSentry module in turboModuleContextIntegration by default. Each wrapped call wrote to the native scope several times, which added CPU time to every SDK call on iOS (#6921)
    • To wrap RNSentry again, add { name: 'RNSentry' } to the modules option.
  • Start and stop the native UI profiler for _experiments.profilingOptions in both the trace and manual lifecycles, and export Sentry.profiler (#6916)
    • Before, the profiler ran only for the app start profile, because native tracing is off in React Native and no API controlled the profiler from JS.
    • The SDK adds the new uiProfilingIntegration by default when profilingOptions is set. If you set defaultIntegrations: false, add Sentry.uiProfilingIntegration() to integrations, because the SDK ignores profilingOptions without it.

Dependencies

Don't miss a new sentry-react-native release

NewReleases is sending notifications on new releases.