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

This API is pre-installed in managed apps. To use it in a bare React Native app, follow its installation instructions.

// in managed apps:
import { Font } from 'expo';

// in bare apps:
import * as Font from 'expo-font';

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

  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.