You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am moving my app to a monorepo to enable code sharing in multiple apps. After the refactoring, the icons are no longer resolved on Android. The icons are resolved correctly on iOS. I have updated the android/app/build.gradle to point to the right gradle file for the fonts as below
I think the issue is that it is not able to find the fonts file and require some tweaking with some configuration to point to the right font files for Android.
The text was updated successfully, but these errors were encountered:
I solved it by upgrading to RNVI 9.2.0 and changing my android/app/build.gradle like so:
project.ext.vectoricons = [
+ iconFontsDir: "../../../../node_modules/react-native-vector-icons/Fonts",
iconFontNames: ['Feather.ttf', 'FontAwesome.ttf'] // Name of the font files you want to copy
]
- apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"+ apply from: "../../../../node_modules/react-native-vector-icons/fonts.gradle"
Environment
Android
Description
I am moving my app to a monorepo to enable code sharing in multiple apps. After the refactoring, the icons are no longer resolved on Android. The icons are resolved correctly on iOS. I have updated the android/app/build.gradle to point to the right gradle file for the fonts as below
apply from: "../../../../node_modules/react-native-vector-icons/fonts.gradle"
I think the issue is that it is not able to find the fonts file and require some tweaking with some configuration to point to the right font files for Android.
The text was updated successfully, but these errors were encountered: