Skip to content

API Reference / @gtkx/navigation / useRoute

Function: useRoute() ​

useRoute<T>(): T

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.