npm react-native-safe-area-context 1.0.0
v1.0.0

latest releases: 4.10.1, 4.10.0, 4.10.0-rc.2...
3 years ago

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 to SafeAreaInsetsContext.

Deprecations

  • useSafeArea is deprecated, use useSafeAreaInsets instead.
  • SafeAreaConsumer is deprecated, use SafeAreaInsetsContext.Consumer instead.
  • initialWindowSafeAreaInsets is deprecated, use initialWindowMetrics instead.
  • SafeAreaProvider prop initialWindowSafeAreaInsets is deprecated, use initialMetrics instead.

New

  • useSafeAreaFrame hook and SafeAreaFrameContext to access the frame of the nearest SafeAreaProvider.
  • withSafeAreaInsets HOC

Fixed

  • Insets should be more accurate on devices using API < 20

Don't miss a new react-native-safe-area-context release

NewReleases is sending notifications on new releases.