Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

How to use @expo/vector-icons dynamically through props in typescript react native app?

$
0
0

react native app with typescript and I'm trying to create icon button that uses @expo/vector-icons with Fontawesome dynamically by trying to pass a name as a string via props.

I think the issue is this, BUT don't know how to solve it. Any ideas? Suggestions? Also feel free to criticize other code.

Fontawesome expo vector expected properties

the 'name' property is the issue here.

name property error


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>