From ef34bdbd8e59d3891129954767083bfb2a5722b9 Mon Sep 17 00:00:00 2001 From: Steffen Matthischke Date: Thu, 2 Nov 2017 23:08:06 +0100 Subject: [PATCH] [react-native] add SafeAreaView --- types/react-native/index.d.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index 58af56a5ac..8d338b2247 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -2230,6 +2230,16 @@ export interface SegmentedControlIOSProperties extends ViewProperties { values?: string[] } +/** + * 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 feflect physical limitation of the screen, + * such as rounded corners or camera notches (aka sensor housing area on iPhone X). + */ +export interface SafeAreaViewStatic extends NativeMethodsMixin, React.ClassicComponentClass { + +} + /** * Use `SegmentedControlIOS` to render a UISegmentedControl iOS. * @@ -8288,6 +8298,9 @@ export type RefreshControl = RefreshControlStatic export var RecyclerViewBackedScrollView: RecyclerViewBackedScrollViewStatic export type RecyclerViewBackedScrollView = RecyclerViewBackedScrollViewStatic +export var SafeAreaView: SafeAreaViewStatic +export type SafeAreaView = SafeAreaViewStatic + export var SegmentedControlIOS: SegmentedControlIOSStatic export type SegmentedControlIOS = SegmentedControlIOSStatic