-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.d.ts
More file actions
29 lines (23 loc) · 747 Bytes
/
index.d.ts
File metadata and controls
29 lines (23 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import * as React from 'react';
import {ViewProps} from 'react-native';
declare class Insets {
leftInset: number;
topInset: number;
rightInset: number;
bottomInset: number;
}
export interface WindowGuardProps extends ViewProps {
applyInsets: string[]
onInsetsChange?: (insets: Insets, notch: boolean) => void
}
export default class WindowGuard extends React.Component<WindowGuardProps> {
static bottom: string[];
static left: string[];
static right: string[];
static top: string[];
static horizontal: string[];
static vertical: string[];
static all: string[];
adjustInsets(): void
}
export function withWindowGuard(component: React.ReactNode, insetsConfig: string[]): React.Component;