import React from 'react'; import { FontAwesome, Ionicons, MaterialIcons, Feather } from '@expo/vector-icons'; import { StyleProp, ViewStyle } from 'react-native'; type IconLibrary = 'FontAwesome' | 'Ionicons' | 'MaterialIcons' | 'Feather'; interface IconProps { name: string; size?: number; color?: string; library?: IconLibrary; className?: string; style?: StyleProp; } export const Icon: React.FC = ({ name, size = 24, color, library = 'FontAwesome', ...props }) => { const iconProps = { size, color, ...props, }; switch (library) { case 'Ionicons': return ; case 'MaterialIcons': return ; case 'Feather': return ; case 'FontAwesome': default: return ; } };