Skip to content
Docs
Components
Layout
Tabs

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

Props

Extends every Box props and TabViewProps from react-native-tab-view

colorScheme

The colorScheme property, will define tabs main color

TypeRequired
stringNo

initialPage

The initial displayed tab index

TypeRequiredDefault
numberNo0

selectedTab

The current selected tab index

TypeRequired
numberNo

onChangeTab

Callback called when current selected tab has changed

TypeRequired
(index: number) => voidNo