UNPKG

@huds0n/screen-manager

Version:

Component to manage screen safe area view padding

45 lines 1.35 kB
/// <reference types="react" /> import { StatusBarProps } from "react-native"; import { UtilityTypes } from "@huds0n/utilities"; export declare namespace Types { type BarAppearance = string | false | null | undefined; type Orientation = UtilityTypes.Orientation; type Appearance = { backgroundColor?: string; bottomBar?: BarAppearance; leftBar?: BarAppearance; rightBar?: BarAppearance; statusBar?: BarAppearance; statusProps?: StatusBarProps; }; type Props = { children: React.ReactNode | React.ReactNode[]; initialAppearance?: Appearance; }; type Layout = { deviceHeight: number; deviceWidth: number; orientation: Orientation; safeBottom: number; safeLeft: number; safeRight: number; safeTop: number; isInitialized: boolean; }; type Dimensions = { deviceHeight: number; deviceWidth: number; orientation: Orientation; screenHeight: number; screenMarginBottom: number; screenMarginLeft: number; screenMarginRight: number; screenMarginTop: number; screenWidth: number; isInitialized: boolean; }; type State = Layout & { appearance: Appearance; }; } //# sourceMappingURL=types.d.ts.map