1 | import * as React from 'react';
|
2 | import { type ViewProps } from 'react-native';
|
3 | import type { EdgeInsets, Metrics, Rect } from './SafeArea.types';
|
4 | export declare const SafeAreaInsetsContext: React.Context<EdgeInsets | null>;
|
5 | export declare const SafeAreaFrameContext: React.Context<Rect | null>;
|
6 | export interface SafeAreaProviderProps extends ViewProps {
|
7 | children?: React.ReactNode;
|
8 | initialMetrics?: Metrics | null;
|
9 | |
10 |
|
11 |
|
12 | initialSafeAreaInsets?: EdgeInsets | null;
|
13 | }
|
14 | export declare function SafeAreaProvider({ children, initialMetrics, initialSafeAreaInsets, style, ...others }: SafeAreaProviderProps): React.JSX.Element;
|
15 | export declare function useSafeAreaInsets(): EdgeInsets;
|
16 | export declare function useSafeAreaFrame(): Rect;
|
17 | export type WithSafeAreaInsetsProps = {
|
18 | insets: EdgeInsets;
|
19 | };
|
20 | export declare function withSafeAreaInsets<T>(WrappedComponent: React.ComponentType<(React.PropsWithoutRef<T> | T) & WithSafeAreaInsetsProps>): React.ForwardRefExoticComponent<React.PropsWithoutRef<T> & React.RefAttributes<unknown>>;
|
21 |
|
22 |
|
23 |
|
24 | export declare function useSafeArea(): EdgeInsets;
|
25 |
|
26 |
|
27 |
|
28 | export declare const SafeAreaConsumer: React.Consumer<EdgeInsets | null>;
|
29 |
|
30 |
|
31 |
|
32 | export declare const SafeAreaContext: React.Context<EdgeInsets | null>;
|
33 |
|
\ | No newline at end of file |