UNPKG

@td-design/react-native-tabs

Version:

基于 @td-design/react-native 的 tabs 组件

20 lines 883 B
/// <reference types="react" /> import { Animated, LayoutRectangle, StyleProp, TextStyle, ViewStyle } from 'react-native'; export interface TabBarProps { tabs: string[]; height?: number; onTabPress: (index: number) => void; onTabsLayout?: (layouts: LayoutRectangle[]) => void; page: number; position: Animated.Value; offset: Animated.Value; isIdle: boolean; showIndicator?: boolean; scrollState: 'idle' | 'dragging' | 'settling'; tabStyle?: StyleProp<ViewStyle>; tabItemStyle?: StyleProp<ViewStyle>; labelStyle?: StyleProp<TextStyle>; indicatorStyle?: StyleProp<ViewStyle>; } export default function TabBar({ tabs, onTabPress, onTabsLayout, height, position, offset, page, isIdle, scrollState, showIndicator, tabStyle, tabItemStyle, labelStyle, indicatorStyle, }: TabBarProps): JSX.Element; //# sourceMappingURL=TabBar.d.ts.map