npm / react-native-safe-area-context
react-native-safe-area-context
What changed in react-native-safe-area-context 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
1 breaking2 new APIs and options2 behavior and defaults10 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initreact-native-safe-area-context 515 changes
Breaking changes 1
The minimum supported React Native version is now 0.74, so projects on older versions cannot update to v5.
New APIs and options 2
Adds corner-adapted safe area insets.
The component exposes a ref to the underlying View, allowing developers to access that View.
Behavior and default changes 2
On Android, window insets now respect adjustments a parent makes for its subtree.
Nested SafeAreaProvider instances on web now report their own frame and insets.
Fixes and other changes 10
Keeps SafeAreaView insets current in native sheets after rotation.
On web, safe area insets no longer grow during scrolling.
Declares the SwiftPM package name in package.json.
Registers src/paper/java as a Java source set on the old architecture, fixing the associated build issue.
Avoids NotFoundError when the measurement element is already detached.
On web, insets and frame are updated when the window is resized.
Fabric SafeAreaView no longer updates state while detached from the window.
SafeAreaView now respects the edges parameter on web.
Adds the missing event dispatcher for tvOS and macOS in the legacy architecture.
Adds support for RN 0.76.