Open cblaze22 opened 1 year ago
is there any update?
@cblaze22 ok i solved by this:
import { FontAwesomeIcon } from '@fortawesome/react-native-fontawesome';
import { library } from "@fortawesome/fontawesome-svg-core";
import { fab } from '@fortawesome/free-brands-svg-icons';
import { far } from '@fortawesome/free-regular-svg-icons';
import { fas } from '@fortawesome/free-solid-svg-icons';
library.add(fab, far, fas);
<FontAwesomeIcon icon={'any-fa-name-string'} />
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?