This shows up when running the Metro Bundler from React Native v0.60.0:
warn The following packages use deprecated "rnpm" config that will stop working from next release:
- react-native-vector-icons: https://github.com/oblador/react-native-vector-icons
See https://github.com/react-native-community/cli/blob/master/docs/configuration.md#migration-guide
Same here.. any idea ?
Same problem to me
This worked for me on a upgraded project and on a brand new RN 0.60.0
Remove the rnpm line from package.json
For IOS add this to ios/projectname/Info.plist
<key>UIAppFonts</key>
<array>
<string>AntDesign.ttf</string>
<string>Entypo.ttf</string>
<string>EvilIcons.ttf</string>
<string>Feather.ttf</string>
<string>FontAwesome.ttf</string>
<string>FontAwesome5_Brands.ttf</string>
<string>FontAwesome5_Regular.ttf</string>
<string>FontAwesome5_Solid.ttf</string>
<string>Foundation.ttf</string>
<string>Ionicons.ttf</string>
<string>MaterialCommunityIcons.ttf</string>
<string>MaterialIcons.ttf</string>
<string>Octicons.ttf</string>
<string>SimpleLineIcons.ttf</string>
<string>Zocial.ttf</string>
</array>
For Android add this line to android/app/build.gradle
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
same here, any new release?
Hello community!
I just solved this problem in RN 0.60 for the moment in Android, there are a series of steps that should be followed, the annex.
Update the dependency to the last update so far:
It is important the "--save" in this new version of react-native since for some reason when running the "npx jetify" command it finds it that way
-If they do not have the jetify install it is necessary, "npm i jetifier"
project.ext.vectoricons = [
iconFontNames: [
'FontAwesome.ttf',
'FontAwesome5.ttf'
] // Name of the font files you want to copy
]
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
I hope it serves you.
Greetings.
@dannydanzka fix did it for me, thanks!
@dannydanzka That works for me thanks...but for IOS still "Unrecognized font family 'FontAwesome'".
Thanks @immortalx it's working for me.
thank you @dannydanzka, it works for me
@dannydanzka Thanks for this solution! Did you find any solution for IOS?
Most helpful comment
This worked for me on a upgraded project and on a brand new RN 0.60.0
Remove the rnpm line from package.json
For IOS add this to ios/projectname/Info.plist
For Android add this line to android/app/build.gradle