Skip to content

Commit 415e003

Browse files
committed
Restore SafeAreaView in sidebar
1 parent 81ac756 commit 415e003

File tree

6 files changed

+166
-131
lines changed

6 files changed

+166
-131
lines changed

docs/safeareaview.md

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

6-
Render content within safe area boundaries of an device.
6+
The purpose of `SafeAreaView` is to render content within the safe area boundaries of a device. It is currently only applicable to iOS devices.
77

8-
iOS: Renders nested content and automatically applies paddings 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 physical limitation of the screen, such as rounded corners or camera notches (aka sensor housing area on iPhone X).
8+
`SafeAreaView` renders nested content and automatically applies paddings 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 X).
99

10-
Android: Not applicable.
10+
### Usage Example
11+
12+
Simply wrap your top level view with a `SafeAreaView` with a `flex: 1` style applied to it. You may also want to use a background color that matches your application's design.
1113

1214
```javascript
13-
<SafeAreaView style={{flex: 1}}>
15+
<SafeAreaView style={{flex: 1, backgroundColor: '#fff'}}>
1416
<View style={{flex: 1}}>
1517
<Text>Hello World!</Text>
1618
</View>

website/versioned_docs/version-0.50/safeareaview.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@ title: SafeAreaView
44
original_id: safeareaview
55
---
66

7-
Render content within safe area boundaries of an device.
7+
The purpose of `SafeAreaView` is to render content within the safe area boundaries of a device. It is currently only applicable to iOS devices.
88

9-
iOS: Renders nested content and automatically applies paddings 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 physical limitation of the screen, such as rounded corners or camera notches (aka sensor housing area on iPhone X).
9+
`SafeAreaView` renders nested content and automatically applies paddings 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 X).
1010

11-
Android: Not applicable.
11+
### Usage Example
12+
13+
Simply wrap your top level view with a `SafeAreaView` with a `flex: 1` style applied to it. You may also want to use a background color that matches your application's design.
1214

1315
```javascript
14-
<SafeAreaView style={{flex: 1}}>
16+
<SafeAreaView style={{flex: 1, backgroundColor: '#fff'}}>
1517
<View style={{flex: 1}}>
1618
<Text>Hello World!</Text>
1719
</View>

website/versioned_sidebars/version-0.52-sidebars.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
"version-0.52-progressbarandroid",
7575
"version-0.52-progressviewios",
7676
"version-0.52-refreshcontrol",
77+
"version-0.52-safeareaview",
7778
"version-0.52-scrollview",
7879
"version-0.52-sectionlist",
7980
"version-0.52-segmentedcontrolios",

website/versioned_sidebars/version-0.53-sidebars.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
"version-0.53-progressbarandroid",
7575
"version-0.53-progressviewios",
7676
"version-0.53-refreshcontrol",
77+
"version-0.53-safeareaview",
7778
"version-0.53-scrollview",
7879
"version-0.53-sectionlist",
7980
"version-0.53-segmentedcontrolios",

website/versioned_sidebars/version-0.54-sidebars.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
"version-0.54-progressbarandroid",
7575
"version-0.54-progressviewios",
7676
"version-0.54-refreshcontrol",
77+
"version-0.54-safeareaview",
7778
"version-0.54-scrollview",
7879
"version-0.54-sectionlist",
7980
"version-0.54-segmentedcontrolios",

0 commit comments

Comments
 (0)