Skip to content

API Reference / @gtkx/navigation / useNavigation

Function: useNavigation() ​

useNavigation<T>(): T

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

Type Parameters ​

T ​

T = Omit<NavigationProp<RootParamList>, "getState"> & object

Returns ​

T

Navigation prop of the parent screen.