@logicwind/react-native-fold-detection
Version:
The purpose of the package is to provide details regarding the Android folding capability.
29 lines (25 loc) • 554 B
text/typescript
export enum FoldingFeatureState {
FLAT = 'FLAT',
HALF_OPENED = 'HALF_OPENED',
}
export enum FoldingFeatureOrientation {
VERTICAL = 'VERTICAL',
HORIZONTAL = 'HORIZONTAL',
}
export enum FoldingFeatureOcclusionType {
NONE = 'NONE',
FULL = 'FULL',
}
export type LayoutInfo = {
state: FoldingFeatureState;
occlusionType: FoldingFeatureOcclusionType;
orientation: FoldingFeatureOrientation;
isSeparating: boolean;
isFoldSupported: boolean;
bounds?: {
top: number;
bottom: number;
left: number;
right: number;
};
};