Skip to content

API Reference / @gtkx/navigation / useNavigationState

Function: useNavigationState() ​

useNavigationState<ParamList, T>(selector): T

Defined in: node_modules/.pnpm/@react-navigation+core@7.21.13_patch_hash=6462da01ed23beee88f01d290d3714743e43d2fd84235198fcbe09501a61d1d4_react@19.2.8/node_modules/@react-navigation/core/lib/typescript/src/useNavigationState.d.ts:9

Hook to get a value from the current navigation state using a selector.

Type Parameters ​

ParamList ​

ParamList extends ParamListBase

T ​

T

Parameters ​

selector ​

Selector<ParamList, T>

Selector function to get a value from the state.

Returns ​

T