UNPKG

513 BTypeScriptView Raw
1import type { NavigationState, ParamListBase } from '@react-navigation/routers';
2declare type Selector<ParamList extends ParamListBase, T> = (state: NavigationState<ParamList>) => T;
3/**
4 * Hook to get a value from the current navigation state using a selector.
5 *
6 * @param selector Selector function to get a value from the state.
7 */
8export default function useNavigationState<ParamList extends ParamListBase, T>(selector: Selector<ParamList, T>): T;
9export {};
10//# sourceMappingURL=useNavigationState.d.ts.map
\No newline at end of file