import FeatherNames from '@expo/vector-icons/build/vendor/react-native-vector-icons/glyphmaps/Feather.json' import Feather from '@expo/vector-icons/Feather' import React from 'react' import { AccessibilityProps, StyleProp, View, ViewStyle } from 'react-native' export type IconName = keyof typeof FeatherNames export interface Props { accessibilityLabel?: AccessibilityProps['accessibilityLabel'] name: IconName size: number color: string style?: StyleProp crossOut?: boolean } const Icon: React.FC = ({ accessibilityLabel, name, size, color, style, crossOut = false }) => { return ( {crossOut ? ( ) : null} ) } export default Icon