Icons not rendering correctly
See original GitHub issueEnvironment
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
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:
- Created 4 years ago
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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"
inandroid/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.Thanks! that solved it