React-native-vector-icons: Icons doesn't display, instead see a question mark

Created on 16 May 2019  Â·  5Comments  Â·  Source: oblador/react-native-vector-icons

I have one problem, but not like related in #391 or #697

I have imported MaterialIcons in my project, works fine with icons like kitchen, work in the same scope (unique component)
but, arrow icons dont work, show question mark, i tried:
arrow_right
arrow-right
arrowRight
chevron_right
chevronRight

i tried also add tag "type" but without sucess

My steps:
1) npm install react-native-vector-icons --save

2) react-native link


in the code:

import Icon from 'react-native-vector-icons/MaterialIcons';
<Icon name="arrow-right" size={30} color="#841777"/>

Most helpful comment

I have tried for checkbox outline it will display like question mark
import Icon from 'react-native-vector-icons/MaterialIcons';
" size={24} color="#FFF"/>

All 5 comments

'arrow-right', 'arrowRight', 'arrow_right' don't work, but i tried now 'chevron-right' and it worked

https://github.com/oblador/react-native-vector-icons/blob/4b9123212517d4e11b5cec89a81794854f7f326b/glyphmaps/MaterialIcons.json#L54-L56

There is no arrow-right in MaterialIcons, use the directory to check if an icon exist and its actual name 🙂

I have tried for checkbox outline it will display like question mark
import Icon from 'react-native-vector-icons/MaterialIcons';
" size={24} color="#FFF"/>

I have this issue with "shaker" and "shaker-outline". I checked and found them in glyphmaps file.

Same issue here with calendar-today and coronavirus ...

Was this page helpful?
0 / 5 - 0 ratings