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_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

Released under the MPL-2.0 License.