question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Icons not rendering correctly

See original GitHub issue

Environment

react-native-cli: 2.0.1 react-native: 0.61.4 react-native-paper: 3.2.1 VSCode Windows 10

Description

Warning: failed prop type invalid prop name of value supplied to icon

screenshot

Reproducible Demo

<Appbar.Header>
          <Appbar.Action icon="menu" />
          <Appbar.Content title="ReactApp" />
          <Appbar.Action icon="search" />
          <Appbar.Action icon="more-vert" />
</Appbar.Header>

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

5reactions
enthussbcommented, Mar 23, 2020

@enthussb how did you do it?

  • First of all, if you are getting a question mark then the issue is due to incorrect name of the icon. Refer https://oblador.github.io/react-native-vector-icons/ for the names of different icon packs that you are using.

  • If you are getting symbol like ☒ then add the following line of code apply from: "../../node_modules/react-native-vector-icons/fonts.gradle" in android/app/build.gradle. It seems like a linking issue so when you add that line and build again you will see the icons to be rendered perfectly.

2reactions
jcarloTAcommented, Mar 23, 2020

Thanks! that solved it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Material icon not rendering properly - Stack Overflow
I had the same issue. Caused because I was importing the material theme before the fonts in my theme.scss. Should be:
Read more >
Windows task bar icons not rendering properly and ...
If that was on your Taskbar and you hid that icon, the error you are now seeing is caused by doing that and...
Read more >
Font Awesome icons not rendering properly - Axure RP 8
Inside Axure, FA icons show up as question marks in boxes but if I select the icon as if I'm going to edit...
Read more >
Material icons not rendering properly in Chrome when local ...
Enabling the extension breaks rendering of the material icons in my browser. How to get both the icons and fonts working properly?
Read more >
Material icons not rendering properly in chrome due to font ...
Material icons not rendering properly in chrome due to font extension · It's understandable you don't want to loose what you have in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found