@logicwind/react-native-fold-detection
Version:
The purpose of the package is to provide details regarding the Android folding capability.
18 lines • 652 B
TypeScript
import React, { type PropsWithChildren } from 'react';
import { type LayoutInfo } from '../types';
type FoldingFeatureContextProps = {
layoutInfo: LayoutInfo;
isTableTop: boolean;
isBook: boolean;
isFlat: boolean;
};
export declare const FoldingFeatureContext: React.Context<FoldingFeatureContextProps>;
export declare const useFoldingFeature: () => FoldingFeatureContextProps | {
layoutInfo: {};
isTableTop: boolean;
isBook: boolean;
isFlat: boolean;
};
export declare const FoldingFeatureProvider: ({ children }: PropsWithChildren<{}>) => React.ReactNode;
export {};
//# sourceMappingURL=FoldingFeatureContext.d.ts.map