-
Notifications
You must be signed in to change notification settings - Fork 58
Open
Description
If we want to dynamically build a menu with icons through a web api, is it possible to reference 'faMugSaucer' as a string to a component like below?
import { View } from 'react-native'
import { FontAwesomeIcon } from '@fortawesome/react-native-fontawesome'
import { faMugSaucer } from '@fortawesome/free-solid-svg-icons/faMugSaucer'
type Props = {}
export default class App extends Component<Props> {
render() {
return (
<View>
<FontAwesomeIcon icon={ faMugSaucer } />
</View>
)
}
}```
junaidahmed501junaidahmed501
Metadata
Metadata
Assignees
Labels
No labels