-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React native vector icons linking #1173
Comments
Hi Nelson, |
I also didn't link, just followed the CocoaPods options, but everytime I run the app, the error appears. 🤷♂️ Let's see if some maintainer know what's happening 👍 If you guys need something just give me a heads up 👍 |
+1 |
Same issue here |
Posted the solution here: |
same issue here |
+1 Same issue here |
Run below commands to solve this issue. |
Why link and unlink right after? 🤔 |
I am not sure exactly why. But when I follow these steps its working.. |
try to install the pods and the project will fail.
|
This is really puzzling issue! I have the same issue. |
@bkh2js Please try my approach.. That is working.. |
@bkh2js : Please tell me your issue in details. I will try to answer. |
We are trying to get some workarounds for a main problem. And the workaround was reported in the first message (the issue): everything works after the unlink. The problem is, why should we link to unlink right after? Shouldn't the autolinking be working after 0.60? @oblador do you have any idea or what's causing the autolinking to not work as expected? |
@sangameshrently @nelsonprsousa solution seems to work. |
@sangameshrently I'm trying it...
|
Sorry I am not getting you. |
After Linking the lib I couldn't build the app and I got this error in Xcode Logs |
@anastely : You have to link then unlink.. it will work . Read my previous comments in same post. |
@sangameshrently Yes, that's what I was doing but it does not work for me sadly. |
@anastely oh. Can you try manually deleting font names from info Plist |
@sangameshrently Same... |
I'm on:
What worked for me was running
Then, add the font assets to your I did not run the link/unlink commands as others have said here, nor did I need to add Also, make sure you clean your build folder + |
Well for me the linking and unlinking solution made it not crash every time the app is reloaded but for some reason i only get a ? icon the icons never appears. |
Instead of running the commands, manually add the icon files to your |
Tried it, but when I do that the app just stays in the "Feather" not found error and not even reloading does the trick. |
And you ran |
And you restarted your watchman? |
@vinibiso Mmk and you said you added them to your Did you check: “ensure that they also appear under Copy Bundle Resources in Build Phases.” |
@evanb2 So i checked it out and i wasn't. `Build system information
And yes I reisntalled pods and did everything I did before. So i manually eddited the It's very weird. But maybe I'm still doing something wrong. |
This was the only thing that worked for me!
I am on react-native-vector-icons 7.0.0 and react-native 0.63.2 |
Solved to me |
I think this is happening because there is a |
it's not pods install, It's pod install |
I have solved this instead of unlinking the package removing all the .ttf resources from Build Phases -> Copy Bundle Resources and then running the application. |
Hey guys!! Initially, my project was working fine with react-native-vector-icons without doing any of these things. But then I installed expo-media-library and for that to work on the bare app I had to use "unimodules-font-interface", "react-native-unimodules": "^0.14.6",expo-task-manager-interface": "^3.0.0", all these libraries. And after installing these libraries I was getting unrecognized font family "material-community" error. And I have tried every single thing on the internet. But not being able to get the resolution. PS: I am using React-native-paper library. plz help....... |
Okay, so on Mac m1, I solved by uninstalling react-native-vector-icons, running npx react-native link, and then cd ios and pod install. I have absolutely no idea why it worked. And all icons are working ????? |
worked for me, thanks. |
Yes I did but react native is give that's unrecognized "link" |
The |
so how we gonna link native labraries using this new version of react-native ?? |
Dont't worry its not a problem ! |
Is your feature request related to a problem? Please describe.
React native vector icons is one of the few libraries that isn't linking automatically. I followed the instructions using CocoaPods option and got the following error after run the app:
I was just expecting this if I followed the react native link option.
Describe the solution you'd like
Autolinking. The current solution seems to link but then I need to unlink 🤷♂️
Additional context
I've ran
react-native unlink react-native-vector-icons
and the line that I added on my Podfile got deleted. After that, the app still runs.The text was updated successfully, but these errors were encountered: