react-native-vector-icons: Unrecognized font family 'FontAwesome5Free-Regular'
Environment
OS: High Siera iOS Version: 12.1 Device: Simulator(iPhone XR)
"dependencies": {
"native-base": "^2.13.5",
"react": "16.8.6",
"react-native": "0.60.5",
"react-native-vector-icons": "^6.6.0",
},
Description
In Android its working fine without any issues, in IOS i am getting bellow error in the Xcode Console.
2019-08-31 23:38:46.595 [error][tid:com.facebook.react.ShadowQueue][RCTFont.mm:314] Unrecognized font family 'FontAwesome5Free-Regular'
2019-08-31 23:38:46.595072+0530 MyAppBundle[25998:316276] Unrecognized font family 'FontAwesome5Free-Regular'
2019-08-31 23:38:46.637 [info][tid:com.facebook.react.JavaScript] 'BugReporting extraData:', { 'AppRegistry.runApplication1': 'Running application "MyAppBundle" with appParams: {"rootTag":1,"initialProps":{}}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF' }
2019-08-31 23:38:46.637703+0530 MyAppBundle[25998:316283] 'BugReporting extraData:', { 'AppRegistry.runApplication1': 'Running application "MyAppBundle" with appParams: {"rootTag":1,"initialProps":{}}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF' }
2019-08-31 23:39:20.212374+0530 MyAppBundle[25998:316381] [] nw_socket_handle_socket_event [C8.1:2] Socket SO_ERROR [54: Connection reset by peer]
Reproducible Demo

About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 9
- Comments: 16 (2 by maintainers)
Solved it with using
Icon.loadFont();import Icon from 'react-native-vector-icons/Ionicons';Icon.loadFont();You forget to add in info.plist
For me this issue started when I
# use_flipper!()I fixed it by going to App_Name/App_Name/Fonts/Add files to “App_Name” and adding the necessary font files copied from ‘./node_modules/react-native-vector-icons/Fonts’
Dear friends,
After I have stopped using FontAwesome5Pro Icons, the error went in iOS. I think we have to use the pro font with a license only.
Try to follow steps like this link : https://github.com/oblador/react-native-vector-icons/blob/master/FONTAWESOME5.md @rkaartikeyan