The React Native SDK version 5 supports both Legacy (from RN 0.65 and above) and New Architecture (from RN 0.69 and above) as well as the new React Native Gradle Plugin (introduced in RN 0.71). For detailed migration guide visit our docs.
Features
- Add support for the RN New Architecture, backwards compatible RNSentry Turbo Module (#2522)
- Add View Hierarchy to the crashed/errored events (#2708)
- Send react native js engine, turbo module, fabric flags and component stack in Event contexts (#2552)
- Sync
tags,extra,fingerprint,level,environmentandbreadcrumbsfromsentry-cocoaduring event processing. (#2713)breadcrumb.levelvaluelogis transformed todebugwhen syncing with native layers.- Remove
breadcrumb.levelvaluecriticaltransformation tofatal. - Default
breadcrumb.levelisinfo
Breaking changes
- Option
enableAutoPerformanceTrackingrenamed toenableAutoPerformanceTracing - Option
enableOutOfMemoryTrackingrenamed toenableWatchdogTerminationTracking - Remove link hooks (RN 0.68 and older) (#2332)
- iOS min target 11, Android API min 21, min React Native version 0.65 (#2522, #2687)
- New ReactNativeTracingOptions (#2481)
idleTimeoutrenamed toidleTimeoutMsmaxTransactionDurationrenamed tofinalTimeoutMs
touchEventBoundaryProps.labelNameproperty instead of defaultaccessibilityLabelfallback (#2712)- Message event current stack trace moved from
exceptiontothreads(#2694)
Fixes
- Unreachable fallback to fetch transport if native is not available (#2695)