TabController.TabBarItem
TabController's TabBarItem component
(code example)
Usageβ
<TabBarItem label={'Item'}/>
APIβ
activeBackgroundColorβ
Apply background color on press for TouchableOpacity
string
activeOpacityβ
The active opacity when pressing a tab
number
backgroundColorβ
Apply background color for the tab bar item
string
badgeβ
Badge component props to display next the item label
BadgeProps
iconβ
Icon of the tab
number
iconColorβ
Icon tint color
string
ignoreβ
Ignore tab presses
boolean
labelβ
Label of the tab
string
labelColorβ
The default label color
string
labelPropsβ
Extra label props to pass to label Text element
TextProps
labelStyleβ
Custom label style
TextStyle
leadingAccessoryβ
Pass to render a leading element
ReactElement
onPressβ
Callback for when pressing a tab
(index: number) => void
selectedIconColorβ
Icon selected tint color
string
selectedLabelColorβ
The selected label color
string
selectedLabelStyleβ
Custom selected label style
TextStyle
styleβ
Pass custom style
ViewStyle
testIDβ
Used as a testing identifier
string
trailingAccessoryβ
Pass to render a trailing element
ReactElement
uppercaseβ
Whether to change the text to uppercase
boolean
widthβ
A fixed width for the item
number