From ef34bdbd8e59d3891129954767083bfb2a5722b9 Mon Sep 17 00:00:00 2001 From: Steffen Matthischke Date: Thu, 2 Nov 2017 23:08:06 +0100 Subject: [PATCH 1/2] [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 From 0a394777ed623806e9b6ff2af88a346600be2cc8 Mon Sep 17 00:00:00 2001 From: Steffen Matthischke Date: Thu, 2 Nov 2017 23:25:13 +0100 Subject: [PATCH 2/2] [react-native] bump version to 0.50 --- types/react-native/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index 8d338b2247..7058f6169f 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for react-native 0.49 +// Type definitions for react-native 0.50 // Project: https://github.com/facebook/react-native // Definitions by: Eloy DurĂ¡n // HuHuanming