Tabs
Component that is based on react-native-tab-view library.
https://github.com/react-navigation/react-navigation (opens in a new tab)
Import
import { Tabs, TabList, Tab, TabPanel, TabPanels } from 'react-native-ficus-ui';Usage
Default
EDITABLE EXAMPLE
Custom color
EDITABLE EXAMPLE
Custom label
EDITABLE EXAMPLE
Props
Extends every Box props and TabViewProps from react-native-tab-view
colorScheme
The colorScheme property, will define tabs main color
| Type | Required | Default |
|---|---|---|
| string | No |
initialPage
The initial displayed tab index
| Type | Required | Default |
|---|---|---|
| number | No |
selectedTab
The current selected tab index
| Type | Required | Default |
|---|---|---|
| number | No |
onChangeTab
Callback called when current selected tab has changed
| Type | Required | Default |
|---|---|---|
| (index: number) => void | No |