1 | /**
|
2 | * Copyright (c) Meta Platforms, Inc. and affiliates.
|
3 | *
|
4 | * This source code is licensed under the MIT license found in the
|
5 | * LICENSE file in the root directory of this source tree.
|
6 | *
|
7 | * @format
|
8 | */
|
9 |
|
10 | import type * as React from 'react';
|
11 | import {Constructor} from '../../../types/private/Utilities';
|
12 | import {NativeMethods} from '../../../types/public/ReactNativeTypes';
|
13 | import {ViewProps} from '../View/ViewPropTypes';
|
14 |
|
15 | /**
|
16 | * Renders nested content and automatically applies paddings reflect the portion of the view
|
17 | * that is not covered by navigation bars, tab bars, toolbars, and other ancestor views.
|
18 | * Moreover, and most importantly, Safe Area's paddings reflect physical limitation of the screen,
|
19 | * such as rounded corners or camera notches (aka sensor housing area on iPhone X).
|
20 | */
|
21 | declare class SafeAreaViewComponent extends React.Component<ViewProps> {}
|
22 | declare const SafeAreaViewBase: Constructor<NativeMethods> &
|
23 | typeof SafeAreaViewComponent;
|
24 | export class SafeAreaView extends SafeAreaViewBase {}
|