API Reference / @gtkx/navigation / PathConfig
Type Alias: PathConfig<ParamList>
PathConfig<
ParamList> =Partial<PathConfigAlias> &object
Defined in: node_modules/.pnpm/@react-navigation+core@7.21.13_react@19.2.8/node_modules/@react-navigation/core/lib/typescript/src/types.d.ts:857
Type Declaration
alias?
optionalalias?: (string|PathConfigAlias)[]
Additional path alias that will be matched to the same screen.
initialRouteName?
optionalinitialRouteName?: keyofParamList
Name of the initial route to use for the navigator when the path matches.
screens?
optionalscreens?:PathConfigMap<ParamList>
Path configuration for child screens.
stringify?
optionalstringify?:Record<string, (value) =>string>
An object mapping the param name to a function which converts the param value to a string. By default, arrays and null are preserved for query params, and other values are converted using String(value).
Example
stringify: {
date: (value) => value.toISOString()
}Type Parameters
ParamList
ParamList extends object