react-nativeexporeact-native-vector-icons

React Native - MaterialCommunityIcons typescript definition for icon name


I'm trying to find out the type definitions for the icon name of MaterialCommunityIcons, since i am intending to use it for props.


Solution

  • React.ComponentProps<typeof MaterialCommunityIcons>['name']