Skip to content

Commit b63b342

Browse files
authored
add deprecation note for SafeAreaView (facebook#4664)
1 parent a5baebc commit b63b342

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/safeareaview.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ id: safeareaview
33
title: SafeAreaView
44
---
55

6+
> **Deprecated.** Use [react-native-safe-area-context](https://github.com/AppAndFlow/react-native-safe-area-context) instead.
7+
68
The purpose of `SafeAreaView` is to render content within the safe area boundaries of a device. It is currently only applicable to iOS devices with iOS version 11 or later.
79

810
`SafeAreaView` renders nested content and automatically applies padding to reflect the portion of the view that is not covered by navigation bars, tab bars, toolbars, and other ancestor views. Moreover, and most importantly, Safe Area's paddings reflect the physical limitation of the screen, such as rounded corners or camera notches (i.e. the sensor housing area on iPhone 13).

0 commit comments

Comments
 (0)