UNPKG

expo-router

Version:

Expo Router is a file-based router for React Native and web applications.

10 lines (9 loc) • 525 B
import * as React from 'react'; export declare const FocusedRouteKeyContext: React.Context<string | undefined>; export declare const IsFocusedContext: React.Context<boolean | undefined>; export declare function useIsRouteFocused(routeKey: string | undefined): boolean; /** * Hook to get the current focus state of the screen. Returns a `true` if screen is focused, otherwise `false`. * This can be used if a component needs to render something based on the focus state. */ export declare function useIsFocused(): boolean;