yarn @sentry/react-native 7.12.0

latest release: 8.0.0-beta.0
6 hours ago

Features

  • Extends the experimental support of UI profiling to iOS (#5611)
    Sentry.init({
      _experiments: {
        profilingOptions: {
          profileSessionSampleRate: 1.0,
          lifecycle: 'trace', // or 'manual'
          startOnAppStart: true,
        },
      },
    });
    • Note that the androidProfilingOptions key is now deprecated, and profilingOptions should be used instead
  • Add performance tracking for Expo Router route prefetching (#5606)
    • New wrapExpoRouter utility to instrument manual prefetch() calls with performance spans
    • New enablePrefetchTracking option for reactNavigationIntegration to automatically track PRELOAD actions
    // Option 1: Wrap the router for manual prefetch tracking
    import { wrapExpoRouter } from '@sentry/react-native';
    import { useRouter } from 'expo-router';
    
    const router = wrapExpoRouter(useRouter());
    router.prefetch('/details'); // Creates a span measuring prefetch performance
    
    // Option 2: Enable automatic prefetch tracking in the integration
    Sentry.init({
      integrations: [
        Sentry.reactNavigationIntegration({
          enablePrefetchTracking: true,
        }),
      ],
    });

Fixes

  • Fix SENTRY_ALLOW_FAILURE environment variable not being respected in Xcode build scripts (#5616)
  • Fix iOS dSYM upload for main app in Expo EAS builds by adding inputPaths to build phase (#5617)

Dependencies

Don't miss a new react-native release

NewReleases is sending notifications on new releases.