I am currently able to code SVGs in React-Native using typescript. This allows me to call them as individual react native components. Below is an example of my current capability:
<View>
<BackArrow
color ="red"
width = {10}
height = {10}
/>
</View>
However, I am looking to create an "Icon" type with specific accepted names that will output SVGs. Here's an example of what I envision:
<View>
<Icon
name = "backArrow"
color = "red"
width = {10}
height = {10}
/>
</View>
Is there a way to achieve this functionality?