React-native-vector-icons: Cant get a Icon displayed

Created on 11 Nov 2019  路  5Comments  路  Source: oblador/react-native-vector-icons

Hi there, I want to display an Icon from Material Community Designs. It is called chevron-triple-left but it doesnt get displayed it only shows a question mark. Other Icons work tho - for example chevron-left.

Most helpful comment

Hello,

If you are using react-native version 0.60++ then it must be the linking problem!

I was facing same after updating react-native, but solved by this, Follow my instructions.

  1. Clean your gradlew
  2. Go to android/app/build.gradle add this at the end of file => apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
  3. Now re-compile (react-native run-android)

It must be work now!..

All 5 comments

I have the same problem. I'm trying to use home-import-outline in a project but for some reason it doesn't work. Even though it is in the github project: https://github.com/oblador/react-native-vector-icons/blob/ba1e17797956314b1ade532cb83f965f2aa9db70/glyphmaps/MaterialCommunityIcons.json#L2164

The same thing happens to me with palette-outline. I had opened an issue (#1057) but it was not answered.

Hello,

If you are using react-native version 0.60++ then it must be the linking problem!

I was facing same after updating react-native, but solved by this, Follow my instructions.

  1. Clean your gradlew
  2. Go to android/app/build.gradle add this at the end of file => apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
  3. Now re-compile (react-native run-android)

It must be work now!..

SO there is actually no help here ? :D I mean I still have this issue and I am not using RN 0.60. Can someone actually provide a fix for this ? I am using expo but somehow Google's icons dont work. I have a chevron-double icon that is made from the communtiy and it works great but the chevron-triple from google doesnt work...

After trying it with @mdi/react and @mdi/js and importing the icons this was I get this errors:

`Invariant Violation: View config not found for name path. Make sure to start component names with a capital letter ...

Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in %s.%s, the componentWillUnmount method,
`

Was this page helpful?
0 / 5 - 0 ratings

Related issues

peacechen picture peacechen  路  3Comments

jszcl picture jszcl  路  3Comments

jakewtaylor picture jakewtaylor  路  4Comments

fevzican picture fevzican  路  3Comments

venux92 picture venux92  路  3Comments