Skip to content

API Reference / @gtkx/navigation / useRoute

Function: useRoute()

useRoute<T>(): T

Defined in: node_modules/.pnpm/@react-navigation+core@7.21.13_react@19.2.8/node_modules/@react-navigation/core/lib/typescript/src/useRoute.d.ts:8

Hook to access the route prop of the parent screen anywhere.

Type Parameters

T

T extends RouteProp<ParamListBase>

Returns

T

Route prop of the parent screen.

Released under the MPL-2.0 License.