I had the same issue and although the responses here are correct, I figured I'd try to give my own version for those who are still confused after reading the posts above :)
I followed this article to add my custom fonts to the XCode project :
You don't actually have to open XCode to add fonts for iOS. I used VSCode for example.
Here are the steps:
- Go to node_modules>react-native-vector-icons>Fonts
You will have to search for it, modules aren't ordered alphabetically
- Copy all the fonts available
- Go to your ios folder and create a new folder called "Fonts"
Watch out ! The naming is case-sensitive, make sure you use a capital "F" (I didn't and spent too much time figuring out where I went wrong)
- Paste de fonts you copied before in your Fonts folder
- Next open your info.plist file (It's located in ios>Your_Project_Name>info.plist)
- For each new font you added in the Fonts folder, add a line such as the one below, under the key UIAppFonts
The final result should look something like this:
<key>UIAppFonts</key>
<array>
<string>font1.ttf</string>
<string>font1.ttf</string>
<string>[Add your font names here]</string>
</array>
- Finally close the iOS simulator, run pod install in the ios folder and run npm install in your root (for good measure) and then you can run react-native run-ios again.
If you're using a recent version of React-Native do not use react-native link command as you will encounter duplicate errors