react-native-vector-icons: Fontawesome5 using Expo not working
- Review the documentation: https://github.com/oblador/react-native-vector-icons
- Search for existing issues (including closed ones): https://github.com/oblador/react-native-vector-icons/issues
Environment
Device: iPhone XS (iOS 12.1) Environment: Expo CLI (RN)
Description
When I try to import Fontawesome5 from react-native-vector-icons/FontAwesome, I get the following error:
Unable to resolve module @expo/vector-icons/FontAwesome5 from xxxxxx
Module @expo/vector-icons/FontAwesome5 does not exist in the Haste module map
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 18 (2 by maintainers)
Commits related to this issue
- Upgraded react-native-vector-icons to 6.1.0, added AntDesgin and FontAwesome5 icons — committed to GeekyAnts/NativeBase by deleted user 6 years ago
NativeBase added FontAwesome 5 as a dependency three days ago. Using the previous version of NativeBase fixes the issue for now:
npm i native-base@2.8.2Ref: https://github.com/GeekyAnts/NativeBase/issues/2452
Yes, that was I mean. Now expo app won’t start
This is released in 6.4.0
also you can still use it you just need to transform fontawesome5 to a ttf or svgs and use that. or eject your expo app
I can add a placeholder for it that just renders an empty view and warns the user that FontAwesome5 isn’t supported, thanks for bringing to my attention