-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Unrecognized font family 'Ionicons' #72
Comments
Same problems... also checked xcode. The fonts are already in the build phase |
You have restart packager after adding fonts. Close the packager terminal and restart from xcode. Should fix your problem. |
Try |
/node_modules/native-base/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.h:9:9: 'RCTBridgeModule.h' file not found |
Try running |
Same problem here even after following the above suggestions. Update: I was able to resolve the issue by editing the info.plist, adding the font files, then running the application with Xcode. Docs here: https://github.com/oblador/react-native-vector-icons |
I solved and I think this is one of cause. |
|
Only declaring in Info.plist helped |
Hi All,
|
@sravindravmd thank you so much. |
运行即可解决 react-native link react-native-vector-icons GeekyAnts/NativeBase#72
@charlieroth You can try to recreate the iOS Scheme on XCode, and run |
What worked for me was uninstalling the
|
|
Hi, I am getting this same issue. So for some reason, my app is working perfectly fine when I run it through the emulator. But when I run it on my device, the same error is shown. I have no clue why it works on the emulator but not on the device. |
@AbhayVarshney If you are using expo/CRNA then you need to import then Ionicons .
you can have a look here this will work for you . |
@geekrishabh I haven't used expo for my project. Is there another method w/o expo? |
I had the same issue. Solved by running first Link
Then restart,
|
I specifically want to use
and nothing shows up (Iconwise..) :( |
I faced the issue with both |
react-native link react-native-vector-icons solved my problem. |
Solved withreact-native link react-native-vector-icons |
These commands resolved my issue: react-native link react-native-vector-icons
react-native start --reset-cache
react-native run-ios |
just adding manual as @RobbyRob81 said |
If you have tried everything and its still not working I suggest rechecking the spelling of the fonts you declare in Info.plist |
I have tried everything here, and nothing works.
Also tried to install another libary, that doesn't work either. |
@vemundeldegard try the above mentioned solutions |
@sravindravmd Thanks. Your solution works for me. |
The problem is with native-base Title, nativ- base uses custom fonts , import Text from react-native and style it to be a title instead if you are having trouble especially if you are are using expo |
I had this problem on a new react native project. I ran the project on the simulator through Xcode and it ran properly after that |
react-native link |
I'd tried all the steps mentioned in above comments like:
Was still facing the issue. |
Hello Guys Still facing this error more than 3 months i have tried all things, Please can someone help me to fix this please, I'm so confused. the most screens of my application are using native-base :/ Also - Im using Visual Studio Code & windows device. Please Advice !! |
I was having this problem today on a fresh React Native install. I solved this issue by using the Legacy Build System in xCode instead of the default New Build System. You can change your build system settings by navigating to File > Project Settings > Shared Project Settings > Build System. |
This mainly happens due to use of Icons from native base ... try to use
react-native vector icons or @expo vector icons.
…On Tue, Jan 29, 2019 at 7:15 PM forbesgillikin ***@***.***> wrote:
I was having this problem today on a fresh React Native install. I solved
this issue by using the Legacy Build System in xCode instead of the default
New Build System. You can change your build system settings by navigating
to File > Project Settings > Shared Project Settings > Build System.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#72 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AlWEKgupti3GxQZno0QmYUnricOquic4ks5vIHONgaJpZM4JR8Lc>
.
|
issue for link font: GeekyAnts/NativeBase#72
issue for link font: GeekyAnts/NativeBase#72
try to delete ios/build, and rebuild by react-native run-ios. |
If your iOS project is using CocoaPods (contains Podfile) and linked library has podspec file, then react-native link will link the library using Podfile. Add the comment below to the bottom of your podfile.
Then run "react-native link [package_name]" This works for me. |
easy solution run
|
Run |
For RN 0.60+ don't use Instead add this in your
and run Furthermore add this in your
(took from https://github.com/oblador/react-native-vector-icons#option-with-cocoapods) Works fine in my project with:
|
Screen shot for adding Ionicons.ttf to xcode version 11.3
I read through link provided by eddyfrank. (https://github.com/oblador/react-native-vector-icons#option-with-cocoapods) |
Simply add the missing font to your Don't worry about using I only use Material Community Icons so I can ignore the other icon fonts.
One thing to be aware of is |
I had the same problem, I fixed buy running run |
Perfect answer ! You helped me much !!!! Thanks you |
Thanks, now working my project! |
Thanks for this! |
Thanks a lot man 🔥🔥🔥 Also, everyone else, you need to add fonts manually in the
Add it in the file, then check in xcode if fonts were added successfully or not. |
my react version is over 0.6
I got this error Unrecognized font family 'Ionicons' than i ran react-native link react-native-vector-icons also when i build by linking my build was failed. But when i unlink my build is successfull. I don't understand where i make a mistake Also i tried info.plist method again i failed |
Most important think is if you face with this error if react-native version > 0.6;
|
```pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons' ``` needs to be added to the top of the podfile for IOS, then in terminal you have to run ```pod update``` in the /ios folder, then ```npm run ios ``` -- reference GeekyAnts/NativeBase#72
Here I have a simple component:
I ran
rnpm link
like I was told to do in the Getting Started section of the docs. I am getting this error:Any suggestions? Should I try to link native-base manually following the instructions in the docs?
The text was updated successfully, but these errors were encountered: