Closed Qy742698 closed 1 month ago
@Qy742698 What do you mean by "does not take effect"? What happens when you use this code?
@johnf The icon is not displayed. Instead, a question mark (?) is displayed.
需要加把这一行 apply from: file("../../node_modules/react-native-vector-icons/fonts.gradle") 加在 android/app/build.gradle。文档里有写的, 我也踩了这个坑
@1421393078 如果是在harmony上面,好像不生效
same here, in iOS/Android it's showing a question mark instead of an icon after updating to 10.1.0 and in version 9.2.0 and rn-version 0.74 throwing error
@Qy742698 Are you seeing this issue on iOS, Android or both?
If this is a new project can I suggest trying our yet to be released multi-package version https://github.com/oblador/react-native-vector-icons/tree/monorepo it is much simpler to set up.
I'm getting the same issue running on iOS. Only the Ionicons are not displaying. I got this after upgrading from version "^9.2.0" to "^10.1.0" and before that, it was working well.
Ionicons was updated in v10, if you had an existing project you have to replace your Ionicons.ttf
https://github.com/oblador/react-native-vector-icons/pull/1484
@Qy742698 Is this still an issue?
Since there has been no update in a while, I'm closing this for now. Feel free to comment, and I'll reopen.