Skip to content

API Reference / @gtkx/navigation / useNavigation

Function: useNavigation()

useNavigation<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/useNavigation.d.ts:8

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.

Released under the MPL-2.0 License.