How can I set icon dynamically?
fabercs opened this issue · comments
Burakhan Dinç commented
In my app, icon names come from an external resource as strings for the navigation.
{
"nav":[
{
"id":1,
"title":"Home",
"icon":"Home"
}
]
}
I need something like;
<Icon name={item.icon} />
I couldn't find a way to create this icon dynamically, can't we do this?
Frank Riccobono commented
I haven't used it myself, but is this what you're looking for?
Burakhan Dinç commented
@aelfric This is exactly what I was looking for, thank you!