github th3rdwave/react-native-safe-area-context v1.0.0

latest releases: v4.10.1, v4.10.0, v4.10.0-rc.2...
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.