UNPKG

react-native-dualscreeninfo

Version:

React Native package for dual screen devices support (Surface Duo)

24 lines (23 loc) 703 B
/** * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. */ export declare type DualScreenInfoEvent = 'didUpdateSpanning' | 'windowSizeChanged'; export declare type WindowRect = { width: number; height: number; x: number; y: number; }; export declare enum DeviceOrientation { Portrait = "portrait", Landscape = "landscape", PortraitFlipped = "portraitFlipped", LandscapeFlipped = "landscapeFlipped" } export declare type DualScreenInfoPayload = { isSpanning: boolean; windowRects: [WindowRect]; orientation: DeviceOrientation; }; export declare type SpannedChangeHandler = (event: DualScreenInfoPayload) => void;