Breaking
- Insets on android are now relative to the Provider view instead of the activity content view. This is consistent with iOS.
SafeAreaContext
was renamed toSafeAreaInsetsContext
.
Deprecations
useSafeArea
is deprecated, useuseSafeAreaInsets
instead.SafeAreaConsumer
is deprecated, useSafeAreaInsetsContext.Consumer
instead.initialWindowSafeAreaInsets
is deprecated, useinitialWindowMetrics
instead.SafeAreaProvider
propinitialWindowSafeAreaInsets
is deprecated, useinitialMetrics
instead.
New
useSafeAreaFrame
hook andSafeAreaFrameContext
to access the frame of the nearestSafeAreaProvider
.withSafeAreaInsets
HOC
Fixed
- Insets should be more accurate on devices using API < 20