123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- ---
- id: options-bottomTabs
- title: Bottom Tabs Options
- sidebar_label: Bottom Tabs
- ---
-
- ```js
- const options = {
- bottomTabs: {
-
- }
- }
- ```
-
- ## `animate`
- Controls whether toggling visibility states will be animated.
-
- | Type | Required | Platform |
- | ------- | -------- | -------- |
- | boolean | No | Both |
-
- ## `backgroundColor`
- Change the background color.
-
- | Type | Required | Platform |
- | ----- | -------- | -------- |
- | color | No | Both |
-
- ## `barStyle`
- Controls whether the BottomTabs use dark (black) or light (default) visual style. Requires `translucent: true`.
-
- | Type | Required | Platform |
- | ----------------------- | -------- | -------- |
- | enum('default','black') | No | Both |
-
- ## `currentTabId`
- Select a tab by the id (componentId) of a child contained in it. See [Selecting tabs programmatically](#selectingtabsprogrammatically) for a detailed explanation.
-
- | Type | Required | Platform |
- | ------ | -------- | -------- |
- | number | No | Both |
-
- ## `currentTabIndex`
-
- | Type | Required | Platform |
- | ------ | -------- | -------- |
- | number | No | Both |
-
- ## `drawBehind`
-
- | Type | Required | Platform |
- | ------- | -------- | -------- |
- | boolean | No | Both |
-
- ## `elevation`
-
- | Type | Required | Platform |
- | ------ | -------- | -------- |
- | number | No | Android |
-
- ## `hideShadow`
-
- | Type | Required | Platform |
- | ------- | -------- | -------- |
- | boolean | No | iOS |
-
- ## `preferLargeIcons`
-
- | Type | Required | Platform |
- | ------- | -------- | -------- |
- | boolean | No | Android |
-
- ## `tabsAttachMode`
-
- | Type | Required | Platform |
- | -------------------------------------------------- | -------- | -------- |
- | enum('together','afterInitialTab','onSwitchToTab') | No | Both |
-
- ## `testID`
-
- | Type | Required | Platform |
- | ------ | -------- | -------- |
- | string | No | Both |
-
- ## `titleDisplayMode`
-
- | Type | Required | Android |
- | ------------------------------------------------ | -------- | ------- |
- | enum('alwaysShow','showWhenActive','alwaysHide') | No | Both |
-
- ## `translucent`
-
- | Type | Required | Platform |
- | ------- | -------- | -------- |
- | boolean | No | iOS |
-
- ## `visible`
-
- | Type | Required | Platform |
- | ------- | -------- | -------- |
- | boolean | No | Both |
|