Expo

Documentation

Font

Allows loading fonts from the web and using them in React Native components. See more detailed usage information in the Using Custom Fonts guide.

For managed apps, you'll need to run expo install expo-font. To use it in a bare React Native app, follow its installation instructions.

import * as Font from 'expo-font';

Convenience form of Font.loadAsync() that loads multiple fonts at once.

Font.loadAsync({
  Montserrat: require('./assets/fonts/Montserrat.ttf'),
  'Montserrat-SemiBold': require('./assets/fonts/Montserrat-SemiBold.ttf'),
});

Returns a promise. The promise will be resolved when the fonts have finished loading.