question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unrecognized font family when bringing app back from background iOS.

See original GitHub issue

Environment

iOS react-native: 0.61.1 react-native-vector-icons: 6.6.0

Description

I install the library following the documentation.

yarn install react-native-vector-icons
cd ios/
pod install

// rebuild

On launch, the icons work fine but upon minimizing the application and bringing it back, I get the following error.

Simulator Screen Shot - iPhone X - 2019-12-06 at 21 32 30

After dismissing it the icons now display as [?].

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:7
  • Comments:9

github_iconTop GitHub Comments

6reactions
Patyscommented, Dec 12, 2019

Add to 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>MaterialIcons.ttf</string>
	  <string>MaterialCommunityIcons.ttf</string>
	  <string>SimpleLineIcons.ttf</string>
	  <string>Octicons.ttf</string>
	  <string>Zocial.ttf</string>
	</array>
2reactions
rampellisrinucommented, Feb 6, 2022

Hi there,

We are also having same issue with custom fonts, it works fine in android and iOS when the app is launched. The issue is when app goes background and come back the fonts are not loaded by iOS platform. Can anyone have any solutions to this issue, please suggest.

Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unrecognized font family on iOS simulator with React Native
Add folder fonts include your fonts (path: src/assets/fonts) · Paste this code in file package. · Run cmd react-native link · Open Xcode...
Read more >
App Clip build says "Unrecognized font family 'FontName'."
Unrecognized font family 'FontName'. I have been getting this error while building an App Clip for a React Native project. I have linked...
Read more >
react native vector icons ios unrecognized font family - You.com
Unrecognized font family on iOS simulator with React Native · iOS however it is a bit more complex. There are a few steps...
Read more >
[Solved]-Unrecognized Font Family on React Native-Reactjs
If you have completed all the above steps and still get the same error, you need to Clean your iOS project from Xcode...
Read more >
React Native Video by Example - All Issues Resolved - SiteReq
To fix that issue, you should first link your plugins in your iOS project by running the following command, then re-install the pod...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found