-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Problem with Icons #12
Comments
Hey. What version of react-native are you using? Also, did you get any errors when installing the library? Finally, did you restart the packager after installing it? Thanks. |
@Java-Jonas Any luck with this? |
my dependencies: restarted everything, still not working. no errors. :( |
I have the same issue, running an example on Android, instead of the icon it displays a square with an X ... here are my dependencies: "dependencies": { |
Ok, looking into this now. @Java-Jonas Are you also having this issue on Android, or are you using iOS? cc @mtzaldo |
Any way I can see your component declarations @mtzaldo @Java-Jonas ? Thanks. |
Yes, I just pushed the code: |
@mtzaldo is ListItem the component that's giving you an issue with the icon? |
@dabit3 Yes, that is the one that is not displaying the right-chevron. |
Very interesting, I'm getting it working for some reason. Are there any errors in your console? |
@dabit3 No, I think I could be my emulator. For some reason the font is not being displayed correctly. I thing the issue is not with your components. |
Have you tried using only the react-native-vector icons in your project? It sounds like it could be an issue with that library being installed correctly, as is often the case I think. @mtzaldo |
I will review the library. It is the first time I try it, maybe I need to tweak something. Thanks @dabit3 |
@mtzaldo Ok cool, let me know if you have any more questions! |
@dabit3 Yes, I was missing some lines in android/app/build.gradle. The icons are now being displayed correctly. Thanks again. Great project btw! |
Thanks, glad you got it fixed. Quick note, I noticed that the avatar is not rendering as a circle correctly for some reason. I'm taking a look at this now and will be releasing a fix for this along with some other stuff tonight. @mtzaldo |
@mtzaldo can you explain me what exactly you did to fix this problem? i really need those icons to work! :( |
@Java-Jonas You can go the repo of the icons: https://github.com/oblador/react-native-vector-icons#android here they tell you what to do to copy the fonts in the device. |
I was having a similar issue, then I realized I didn't reinstall the app after adding react-native-vector-icons. So a simple |
Same for me like for @raduflp... but I've reinstalled the app. |
I fix this issue like this step:
and that's it! I hope to help you |
@lai32290 working after following your instructions (y) |
@SOftEngrAtta that's cool! I'm happy for this! 😄 |
Please put it in the "getting started" section. For me helped:
from here https://github.com/oblador/react-native-vector-icons#android |
Im trying to use the icons. I think i'm doing everything right, but it just won't work. All i get is a little crossed out box. Does anyone know what I'm doing wrong?
Sorry if this isn't the right place to put this btw. I'm new here.
The text was updated successfully, but these errors were encountered: