shahab
shahab

Reputation: 23

How to add new custom fontFamily to react native from server after build a release?

I have an application that has some custom fontFamilies; Users can select them and fontFamily of text will change, now I want to change this strategy and put fonts on my server to add/remove them whenever I want. So, I can download and save them with react-native-fs but I can't use them, how can I achieve this? Thank you

Upvotes: 0

Views: 41

Answers (1)

Abhishek
Abhishek

Reputation: 301

For android I think you can use Typeface.createFromFile(String path)

Upvotes: 1

Related Questions