DEV Community

Discussion on: How to add custom fonts to a React Native project with Expo and React Navigation!

Collapse
 
2imad profile image
Imad

Hi Mahdi,
You can add any font as long as you have a ".ttf" file to add to your project.
It does not have to be a google font.
If you need help, DM me on twitter and share with me your project repo, and I will help you!
Cheers,

IYO

Collapse
 
mahdimohammadii profile image
Mahdi

Hi IYO.
wanted to text you but I thought that maybe I should try one more time. Fortunately it worked! the problem was that the font's name had " " instead of "-".
like: "b titr Bold" but I renamed it to "titr" and it worked! (I guess if I used "b-titr-bold" it would work too!)

Thanks!

Mahdi