Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 612 Bytes

File metadata and controls

28 lines (23 loc) · 612 Bytes

react-native-app-helpers/FiniteStateMachineRouterState

The state of a finite state machine router.

Usage

import type { FiniteStateMachineRouterState } from "react-native-app-helpers";

type RouteParameters = {
  routeAKey: {
    routeAParameterKey: `Route A Parameter Value`,
  },
  routeBKey: {
    routeBParameterKey: `Route B Parameter Value`,
  },
  routeCKey: {
    routeCParameterKey: `Route C Parameter Value`,
  },
};

const routeState: FiniteStateMachineRouterState<RouteParameters> = {
  key: `routeBKey`,
  parameters: {
    routeBParameterKey: `Route B Parameter Value`,
  },
};