expo-router
Version:
Expo Router is a file-based router for React Native and web applications.
8 lines (7 loc) • 341 B
TypeScript
/**
* Hook to get a minimal state representation for the current route.
* The returned state can be used with `getPathFromState` to build a path.
*
* @returns Minimal state to build a path for the current route.
*/
export declare function useStateForPath(): import("./NavigationFocusedRouteStateContext").FocusedRouteState | undefined;