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-10-18.
1 new APIs and options1 behavior and defaults7 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initreact-native-safe-area-context 59 changes
New APIs and options 1
The component exposes a ref to the underlying View, allowing developers to access that View.
Behavior and default changes 1
Nested SafeAreaProvider instances on web now report their own frame and insets.
Fixes and other changes 7
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.