import { ColorsStatus } from '@/constants/ColorsStatus'; import Styles from '@/constants/Styles'; import { AntDesign, Feather, Ionicons, MaterialCommunityIcons } from '@expo/vector-icons'; import { TabTriggerSlotProps } from 'expo-router/ui'; import { ComponentProps, Ref } from 'react'; import { Pressable, View } from 'react-native'; import Text from './Text'; type Feather = ComponentProps['name']; type Ionicons = ComponentProps['name']; type AntDesign = ComponentProps['name']; type MaterialCommunityIcons = ComponentProps['name']; export type TabButtonProps = TabTriggerSlotProps & { iconType: 'Feather' | 'Ionicons' | 'AntDesign' | 'MaterialCommunityIcons'; iconF?: Feather iconI?: Ionicons iconA?: AntDesign iconM?: MaterialCommunityIcons ref: Ref; n: number }; export function ButtonTabExpo({ iconType, iconF, iconI, iconA, iconM, children, isFocused, n, ...props }: TabButtonProps) { return ( {iconType == 'Feather' && } {iconType == 'Ionicons' && } {iconType == 'AntDesign' && } {iconType == 'MaterialCommunityIcons' && } {children} ); }