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
,environment
andbreadcrumbs
fromsentry-cocoa
during event processing. (#2713)breadcrumb.level
valuelog
is transformed todebug
when syncing with native layers.- Remove
breadcrumb.level
valuecritical
transformation tofatal
. - Default
breadcrumb.level
isinfo
Breaking changes
- Option
enableAutoPerformanceTracking
renamed toenableAutoPerformanceTracing
- Option
enableOutOfMemoryTracking
renamed 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)
idleTimeout
renamed toidleTimeoutMs
maxTransactionDuration
renamed tofinalTimeoutMs
touchEventBoundaryProps.labelName
property instead of defaultaccessibilityLabel
fallback (#2712)- Message event current stack trace moved from
exception
tothreads
(#2694)
Fixes
- Unreachable fallback to fetch transport if native is not available (#2695)