I'm trying to integrate Font Awesome into a React Native Expo app that I'm working on, but I keep getting the following error:
console.error: "ERROR: icon not found for icon = ", "coffee"
I'm just following the instructions on the following GitHub page for React Native Font Awesome: https://github.com/FortAwesome/react-native-fontawesome
Specifically, first, I ran the following commands:
npm i --save react-native-svg #
npm i --save @fortawesome/fontawesome-svg-core
npm i --save @fortawesome/free-solid-svg-icons
npm i --save @fortawesome/react-native-fontawesome
Those all ran fine. Then I added the following to my home screen code:
import { FontAwesomeIcon } from '@fortawesome/react-native-fontawesome';
...
<FontAwesomeIcon icon="coffee" />
Again, I'm just following the instructions on the GitHub page linked to above. When I do all that though, I get the error noted above. Accordingly to my package.json
, I'm on expo
version ~36.0.0
.
Any ideas? Thank you very much in advance.