react-native-vector-icons: react-native link does not link with 0.59.0 for Android
- Review the documentation: https://github.com/oblador/react-native-vector-icons
- Search for existing issues (including closed issues): https://github.com/oblador/react-native-vector-icons/issues
Environment
Mac OS 10.14 Android react-native-vector-icons version 6.1.0 React Native 0.59.0
Description
react-native link react-native-vector-icons do not link assets for Android with latest React Native 0.59.0
info iOS module "react-native-vector-icons" is already linked
info Android module "react-native-vector-icons" is already linked
info Linking assets to ios project
info Linking assets to android project
error Something went wrong while linking. Error: ENOENT: no such file or directory, copyfile '/MyProject/node_modules/react-native-vector-icons/Fonts/AntDesign.ttf' -> '/MyProject/android/app/src/main/assets/fonts/AntDesign.ttf'
error ENOENT: no such file or directory, copyfile '/MyProject/node_modules/react-native-vector-icons/Fonts/AntDesign.ttf' -> '/MyProject/android/app/src/main/assets/fonts/AntDesign.ttf'
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 5
- Comments: 15 (1 by maintainers)
Hi @SupriyaKalghatgi , yes, the version 0.59 has this issue. When you are able to link the library, there is another issue waiting for you, that is we cannot display the FontAwesome5 in Android device 😢
Hi @SupriyaKalghatgi , as I know, we have to create the fonts folder by our self, I mean this one:
Can you have a try?
ios version: Works good with FontAwesome5 android version: Doesn’t:
My solution: Changed all icons back to old FontAwesome version 4.7