react-native-tab-screen
Version:
React Native tab view component with options to position the tab bar at the top or bottom.
14 lines (13 loc) • 411 B
TypeScript
import TabItem from './tabItem';
import { TextStyle, ViewStyle } from 'react-native';
export type TabViewProps = {
tabs: TabItem[];
activeTabStyle?: ViewStyle;
inactiveTabStyle?: ViewStyle;
tabTextStyle?: TextStyle;
activeTabTextStyle?: TextStyle;
onTabChange?: (activeIndex: number) => void;
children: React.ReactNode[];
tabBarPosition?: string;
};
export default TabViewProps;