UNPKG

@react-navigation/core

Version:

Core utilities for building navigators

9 lines 485 B
import * as React from 'react'; export declare const FocusedRouteKeyContext: React.Context<string | undefined>; export declare const IsFocusedContext: React.Context<boolean | undefined>; /** * 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; //# sourceMappingURL=useIsFocused.d.ts.map