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

latest releases: 4.14.0, 4.13.1, 4.13.0...
4 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.