react-native-vector-icons: Fontawesome5 using Expo not working

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

Most upvoted comments

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.2

Ref: https://github.com/GeekyAnts/NativeBase/issues/2452

Yes, that was I mean. Now expo app won’t start screen shot 2018-12-20 at 00 08 22

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