expo / vector-icons

https://icons.expo.fyi
MIT License
647 stars 114 forks source link

Support generic Icon component with ‘type’ prop #292

Open VictorioMolina opened 3 months ago

VictorioMolina commented 3 months ago

I am moving an old project from react-native-elements to this library.

Previously, with the mentioned package, I was able to do something like:

<Icon
   type=“material”
   name=“search”
   …
/>

Instead of importing a specific component for each specific icon family, is there another generic way supporting a type prop?