import * as React from 'react'; import { StyleProp, TextStyle, ColorValue } from 'react-native'; import { TabButtonProps } from '../TabButton'; import type { TabItem, TabValue, RenderTabIcon, RenderTabBadge, RenderTabLabel } from '../types'; type BaseTabProps = Omit; export interface TabProps extends BaseTabProps { /** * The tab item. */ item: TabItem; /** * The tab index. */ index: number; /** * Determines the tab width. */ tabWidth?: number; /** * Background color to be applied when the tab is pressed. */ pressColor?: ColorValue; /** * Opacity to be applied when the tab is pressed. */ pressOpacity?: number; /** * Render the tab icon to display. */ renderIcon?: RenderTabIcon; /** * Render the tab label to display. */ renderLabel?: RenderTabLabel; /** * Render the tab badge to display. */ renderBadge?: RenderTabBadge; /** * If `true`, the component is disabled. */ disabled?: boolean; /** * Indicates whether the tab is selected. */ selected?: boolean; /** * The opacity of the disabled tab. */ disabledOpacity?: number; /** * Determines the style of the label. */ labelStyle?: StyleProp; /** * The component used to render the tab. */ buttonComponent?: React.ComponentType; } declare const Tab: (props: TabProps) => React.JSX.Element; export default Tab;