Skip to content

API Reference / @gtkx/navigation / StaticConfigGroup

Type Alias: StaticConfigGroup<ParamList, State, ScreenOptions, EventMap, NavigationList> ​

StaticConfigGroup<ParamList, State, ScreenOptions, EventMap, NavigationList> = Omit<RouteGroupConfig<ParamList, ScreenOptions, NavigationList[keyof ParamList]>, "screens" | "children"> & object

Type Declaration ​

if? ​

optional if?: () => boolean

Callback to determine whether the screens in the group should be rendered or not. This can be useful for conditional rendering of group of screens.

Returns ​

boolean

screens ​

screens: StaticConfigScreens<ParamList, State, ScreenOptions, EventMap, NavigationList>

Static navigation config or Component to render for the screen.

Type Parameters ​

ParamList ​

ParamList extends ParamListBase

State ​

State extends NavigationState

ScreenOptions ​

ScreenOptions extends object

EventMap ​

EventMap extends EventMapBase

NavigationList extends NavigationListBase<ParamList>