Skip to content

How I can use custom fonts with react-native-web? #2213

Answered by nandorojo
h3nk42 asked this question in Q&A
Discussion options

You must be logged in to vote

There is no difference to using custom fonts within a standard React DOM app.

I wrote a guide for optimizing fonts as part of the Dripsy Font docs.

https://www.dripsy.xyz/fonts#web-optimizations

You should include them in your static files and link to them in your HTML with preload.

You may also want to use font-face CSS as part of the CSS reset if you're using custom fonts. This is what we do for beatgig.com

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by necolas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #2176 on January 31, 2022 22:33.