UNPKG

expo-router

Version:

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

9 lines (8 loc) • 286 B
import type { ParamListBase } from '../routers'; import type { RouteProp } from './types'; /** * Hook to access the route prop of the parent screen anywhere. * * @returns Route prop of the parent screen. */ export declare function useRoute<T extends RouteProp<ParamListBase>>(): T;