Closed huntermetts closed 4 years ago
You also need to check if they are listed in your info.plist
i.e.
<key>UIAppFonts</key>
<array>
<string>FedraSansPro-Book.ttf</string>
<string>FedraSansPro-Medium.ttf</string>
<string>AntDesign.ttf</string>
<string>Entypo.ttf</string>
<string>EvilIcons.ttf</string>
<string>Feather.ttf</string>
<string>FontAwesome.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>
<string>FontAwesome5_Brands.ttf</string>
<string>FontAwesome5_Regular.ttf</string>
<string>FontAwesome5_Solid.ttf</string>
<string>Fontisto.ttf</string>
</array>
@huntermetts did @mtt87's suggestion help?
Also make sure to use font family name, not font file name.
I've added a react-native.config.js file, added
module.exports = { assets:['./assets/fonts'] }
ran
react-native link
restarted everything
And have attempted to use the font and it just says it's unrecognized
React Native version: react-native-cli: 2.0.1 react-native: 0.61.5
Steps To Reproduce
Describe what you expected to happen: "unrecognized font family 'ProximaNovaAlt-Bold'