oblador / react-native-vector-icons

Customizable Icons for React Native with support for image source and full styling.
https://oblador.github.io/react-native-vector-icons/
MIT License
17.31k stars 2.12k forks source link

unrecognized 'FontAwsome5Pro-Regular' #1426

Closed othAlmubarak closed 11 months ago

othAlmubarak commented 2 years ago

Environment

OS: IOS packages version

"dependencies": {
    "@react-native-picker/picker": "^2.2.1",
    "react": "17.0.2",
    "react-native": "0.67.2",
    "react-native-navigation": "^7.25.4",
    "react-native-picker-select": "^8.0.4",
    "react-native-vector-icons": "^9.1.0"
  }

Description

I've been trying to upgrade to FontAwsome5Pro, but I keep getting " unrecognized 'FontAwsome5Pro-Regular' "

I did the following:

1-upgraded to pro as the FontAwsome5Pro README suggest

Screen Shot 1443-09-07 at 3 37 40 PM

2-executed "react-native link" 3-add Fonts group to Xcode

Screen Shot 1443-09-07 at 3 39 05 PM

4-added font to "copy build phase/copy bundle resources"

Screen Shot 1443-09-07 at 3 33 57 PM

5-added new fonts to info.plist

Screen Shot 1443-09-07 at 3 42 37 PM

and still getting "unrecognized 'FontAwsome5Pro-Regular' " error

Maddoc42 commented 2 years ago

I ran into the same issue today. Running fc-scan on the pro font files returned this:

postscriptname: "FontAwesome6Pro-Regular"(s)

... which looks suspicious. Any chance the upgrade script is pulling the latest version of FA (version 6) instead of 5? Replacing the ttf files with an older copy of "real" FontAwesome5 pro ttf files fixed the issue for me 👍

othAlmubarak commented 2 years ago

@Maddoc42 exactly I installed the font without the package and used it with the name as 'Font Awesome 6 Pro Solid' and it worked. In the end, I switched to 'react-native-fontawesome'

dancosta-fed commented 1 year ago

Still no fix? I've encounter the same issue

coolirisroto commented 1 year ago

i have the same issue'??? .

othAlmubarak commented 1 year ago

i just switched to https://github.com/FortAwesome/react-native-fontawesome

ahmedfaaid commented 1 year ago

If anyone still has this issue,

  1. npm uninstall react-native-vector-icons
  2. Delete the Fonts folder from XCode project
  3. Follow all the installation steps again (You may not need to update info.plist if you're using iOS)
johnf commented 11 months ago

Closing as OP has moved to a different library. Please open a new issue if you are having the same problem