UNPKG

react-native-dynamic-vector-icons

Version:

Wrapper of react-native-vector-icons to use dynamic types.

30 lines (29 loc) 869 B
import { TextProps, GestureResponderEvent, TextStyle } from "react-native"; export declare enum IconType { FontAwesome = "FontAwesome", AntDesign = "AntDesign", MaterialIcons = "MaterialIcons", EvilIcons = "EvilIcons", Entypo = "Entypo", Foundation = "Foundation", Ionicons = "Ionicons", MaterialCommunityIcons = "MaterialCommunityIcons", Zocial = "Zocial", Octicons = "Octicons", SimpleLineIcons = "SimpleLineIcons", Fontisto = "Fontisto", Feather = "Feather", FontAwesome5 = "FontAwesome5" } export interface IconProps extends TextProps { type: IconType; name: string; size?: number; color?: string; brand?: string; solid?: string; onPress?: (event: GestureResponderEvent) => void; style?: TextStyle; } declare const Icon: (props: IconProps) => JSX.Element; export default Icon;