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.