-
-
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
cannot load icons in android #1117
Comments
Facing the same issue here |
I think app cached missing font data while setting font files during change this module, so I change unload cached fonts like #463 (comment), and use react-native-fs, but those are failed. |
react-native link and re-run project works for me. |
hey @ddinggu have you solved your problem? |
No. I try to rebuild project and change version, these still were worked. |
Its bad to load png images. If you are loading icons, then you should load vector or svg icons, as it takes low sizes and take less to render |
Thanks for letting me know :) Any Idea png to svg easily? |
@ddinggu The problem might be that the app is not loading icons correctly. Try to manually load icons for Android. Copy the contents in the |
Automatic way to add fonts Add this piece of code in
This is manual way (If automatic didn't work) Step 1 Move the .ttf file from the Step 2 Add this line in
After that the icons will be visible. Try resetting the cache if it did not work |
I was getting this issue in my project. The solution here was: delete the old APK and reinstall a new one. Seems like a font cache. |
If you are using monorepo approach, then you might have to edit the path provided in font.gradle |
Wired, I faced the same issue on Android simulator, but do following have saved me:
|
@yuertongle link is deprecated use autolinking. Check my solution. RN 60 onwards the native dependencies get autolinked. |
It works for me, thanks! |
thank u so much, it works for me, everyone should do it this way |
Thanks @raajnadar just add a small update for the the
|
In case someone facing this issue only for fontrello custom fonts.
Solved by adding below in
and run |
I run |
Environment
android, react-native 0.61.5, react-native-vector-icons 6.6.0, react-native-navigation v4
Description
I used rnn v4 and setting on tab icons.
(This is how I load icons for use tab button icons)
follow instructions and other solution issues, but simulators and real devices cant load icons like this.
I try to reinstall with cleaning project and also move to new react-native project, but don't know why still can't load icons.
Does anyone know a solution to this problem??
The text was updated successfully, but these errors were encountered: