API Reference / @gtkx/navigation / TabNavigationOptions
Type Alias: TabNavigationOptions
TabNavigationOptions =
HeaderOptions&object
Defined in: packages/navigation/dist/tabs/types.d.ts:15
Per-screen options of the tab navigator.
Type Declaration
animation?
optionalanimation?:"fade"|"none"
Whether switching to this tab crossfades; defaults to "none".
header?
optionalheader?: (props) =>ReactNode
Renders a custom top bar instead of the default AdwHeaderBar.
Parameters
props
Returns
ReactNode
lazy?
optionallazy?:boolean
Whether the screen mounts on first focus instead of at startup; defaults to true.
needsAttention?
optionalneedsAttention?:boolean
Whether the view switcher highlights the tab as needing attention.
popToTopOnBlur?
optionalpopToTopOnBlur?:boolean
Whether a nested stack pops to its first screen when this tab loses focus; defaults to false.
tabBarBadge?
optionaltabBarBadge?:number
Badge number shown in the view switcher; 0 hides the badge.
tabBarIcon?
optionaltabBarIcon?:string
Icon name shown in the view switcher.
tabBarLabel?
optionaltabBarLabel?:string
Label shown in the view switcher; defaults to title, then to the route name.