Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16552

Why are custom Xcode fonts only working in Interface Builder?

$
0
0

Ive added custom fonts to a react-native project in xcode.

Ive:

  • added the .ttf font file to fonts folder
  • added the item to the fonts provided by application array in .plist
  • confirmed custom fonts are in bundle resources
  • confirmed that the font file name is capitalized/lowercase when expected
  • confirmed appropriate target membership
  • cleaned build folders
  • deleted from bundle resources then re-added

The fonts display properly when building the launch screen, they also display in the custom font dropdown. The fonts are accessible from within react-native

Problem: The custom fonts dont render when running on simulator or real device. This seems to be an issue related to the launch screen

The LaunchScreen.xib file contains a UI View with an Image and a label in it.

here are screenshots of the label's attribute inspector and the UIView's file inspector

enter image description here

enter image description here

How to fix?


Viewing all articles
Browse latest Browse all 16552

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>