Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native: What is the default font that react native uses?

Tags:

react-native

I'm trying to make a graphic using the same font as the one being used by default in React Native but I don't know what the font is.

Anyone know?

like image 365
bigpotato Avatar asked Jan 13 '17 14:01

bigpotato


2 Answers

For iOS is San Francisco and to use that you need to pass

fontFamily: 'system font'

Notice that system along will give you an error same if you use 'san francisco'

like image 125
Michel Arteta Avatar answered Sep 23 '22 08:09

Michel Arteta


Pretty sure React-Native just uses the default font family for each platform. So that's San Francisco on IOS and Roboto for Android.

like image 20
Matt Aft Avatar answered Sep 20 '22 08:09

Matt Aft