12345678910111213141516171819202122232425262728293031 |
- import { NativeSyntheticEvent, ViewStyle } from 'react-native';
-
- export interface EdgeInsets {
- top: number;
- right: number;
- bottom: number;
- left: number;
- }
-
- export interface Rect {
- x: number;
- y: number;
- width: number;
- height: number;
- }
-
- export interface Metrics {
- insets: EdgeInsets;
- frame: Rect;
- }
-
- export type InsetChangedEvent = NativeSyntheticEvent<Metrics>;
-
- export type InsetChangeNativeCallback = (event: InsetChangedEvent) => void;
-
- export interface NativeSafeAreaViewProps {
- children?: React.ReactNode;
- style?: ViewStyle;
- onInsetsChange: InsetChangeNativeCallback;
- }
|