react-native-navigation-mode
Version:
Detect Android navigation mode (3-button, 2-button, or gesture)
33 lines • 1.21 kB
TypeScript
import { type NavigationModeInfo } from './NativeNavigationMode';
export type { NavigationModeInfo };
/**
* Get detailed navigation mode information
* Returns navigation type, interaction mode, and device info
*/
export declare function getNavigationMode(): Promise<NavigationModeInfo>;
/**
* Quick check if the device is using gesture-based navigation
* @returns Promise<boolean> - true if gesture navigation is active
*/
export declare function isGestureNavigation(): Promise<boolean>;
/**
* Get the navigation bar height in dp
* @returns Promise<number> - navigation bar height in dp
*/
export declare function getNavigationBarHeight(): Promise<number>;
/**
* Hook for React components to get navigation mode
*/
export declare function useNavigationMode(): {
navigationMode: NavigationModeInfo | null;
loading: boolean;
error: Error | null;
};
declare const _default: {
readonly getNavigationMode: typeof getNavigationMode;
readonly isGestureNavigation: typeof isGestureNavigation;
readonly getNavigationBarHeight: typeof getNavigationBarHeight;
readonly useNavigationMode: typeof useNavigationMode;
};
export default _default;
//# sourceMappingURL=index.d.ts.map