UNPKG

react-native-orientation-turbo

Version:
13 lines 1.07 kB
import { LandscapeDirection, PortraitDirection, Orientation } from './constants'; import type { LockOrientationSubscription, OrientationSubscription } from './types'; export declare const startOrientationTracking: () => void; export declare const stopOrientationTracking: () => void; export declare const lockToPortrait: (direction?: PortraitDirection) => void; export declare const lockToLandscape: (direction: LandscapeDirection) => void; export declare const unlockAllOrientations: () => void; export declare const getCurrentOrientation: () => Orientation; export declare const isLocked: () => boolean; export declare const onLockOrientationChange: (callback: (subscription: LockOrientationSubscription) => void) => import("react-native").EventSubscription; export declare const onOrientationChange: (callback: (subscription: OrientationSubscription) => void) => import("react-native").EventSubscription; export { LandscapeDirection, PortraitDirection, Orientation, type LockOrientationSubscription, type OrientationSubscription, }; //# sourceMappingURL=index.d.ts.map