-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
The icons show up as a crossed out box on android device #1479
Comments
I had the same problem, but I upgraded to the latest (9.2.0) and it worked! |
do you have problem with installing on ios? |
I haven't tried, sorry! |
facing same issue in 9.2.0 |
You are likely missing this line from your /android/app/build.grade Check the location (there is more than one build.gradle - be sure its the /app/ directory version Install info is here https://github.com/oblador/react-native-vector-icons#android |
Same problem, I added
|
I solved this problem. I downgraded the react-native-vector-icon package. Problem solved. I think there is a problem with the new version. You can use 9.1.0 version.
|
same problem react-native:0.70.7 react-native-vector-icons:^9.2.0 |
Having same issue on yarn workspace mono repo Please any pointer to a solution would be greatly appreciated. Thanks |
I downgraded the react-native-vector-icon package. Problem solved. I think there is a problem with the new version. You can use 9.0.0 version. "react-native-vector-icons": "9.0.0" |
I had the same problem with 9.2.0 and I downgraded to 9.1.0 but still not resolved Edit: was missing adding this project.ext.vectoricons = [ in app/build.gradle |
This is part of the readme but somehow got missed |
i had same problem solved by adding the fonts of vectoricons( nodemodules/react-native-vector-icons) in android/app/src/main/assets/fonts |
I think autolinking is not working |
have the same problem and I prepared a small PR to update the README |
I actually removed the 2 lines from
|
Environment
"react-native-vector-icons": "^9.2.0",
"react-native": "^0.70.6",
Description
Describe your issue in detail. Include screenshots if needed.
The icons show up as a crossed out box on android device
I'm also added these line to build.gradle according to docs
project.ext.vectoricons = [
iconFontNames: [ 'FontAwesome.ttf', 'FontAwesome5_Regular.ttf',
'FontAwesome5_Solid.ttf', 'FontAwesome5_Brands.ttf'] // <-- add this line (1/2)
]
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
And I'm also face this warn


warn Package react-native-vector-icons contains invalid configuration: "dependency.assets" is not allowed. Please verify it's properly linked using "react-native config" command and contact the package maintainers about this.
The text was updated successfully, but these errors were encountered: