mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 15:27:05 +00:00
Merge pull request #21214 from HeEAaD/SafeAreaView
[react-native] SafeAreaView
This commit is contained in:
Vendored
+14
-1
@@ -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 <https://github.com/alloy>
|
||||
// HuHuanming <https://github.com/huhuanming>
|
||||
@@ -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<ViewProperties> {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user