Skip to content

API Reference / @gtkx/navigation / getActionFromState

Function: getActionFromState()

getActionFromState(state, options?): Action | NavigateAction<Readonly<{ history?: unknown[]; index: number; key: string; routeNames: string[]; routes: NavigationRoute<ParamListBase, string>[]; stale: false; type: string; }>> | undefined

Defined in: node_modules/.pnpm/@react-navigation+core@7.21.13_react@19.2.8/node_modules/@react-navigation/core/lib/typescript/src/getActionFromState.d.ts:15

Parameters

state

PartialState<Readonly<{ history?: unknown[]; index: number; key: string; routeNames: string[]; routes: NavigationRoute<ParamListBase, string>[]; stale: false; type: string; }>>

options?

Options

Returns

Action | NavigateAction<Readonly<{ history?: unknown[]; index: number; key: string; routeNames: string[]; routes: NavigationRoute<ParamListBase, string>[]; stale: false; type: string; }>> | undefined

Released under the MPL-2.0 License.