@expo-google-fonts/dev
TypeScript icon, indicating that this package has built-in type declarations

0.2.3 • Public • Published

@expo-google-fonts/dev

If you are trying out lots of different fonts, you can try using the @expo-google-fonts/dev package.

You can import any font style from any Expo Google Fonts package from it. It will load the fonts over the network at runtime instead of adding the asset as a file to your project, so it may take longer for your app to get to interactivity at startup, but it is extremely convenient for playing around with any style that you want.

Usage

Usage is the same as any individual Expo Google Fonts package except that you can important any font variant from any font family from @expo-google-fonts/dev.

Install the package

expo install @expo-google-fonts/dev expo-font expo-app-loading

In your app

import {
  useFonts,
  Nunito_400Regular,
  Lato_400Regular,
  Inter_900Black,
} from '@expo-google-fonts/dev';
...

etc.

Readme

Keywords

none

Package Sidebar

Install

npm i @expo-google-fonts/dev

Weekly Downloads

501

Version

0.2.3

License

MIT

Unpacked Size

1.01 MB

Total Files

7

Last publish

Collaborators

  • brentvatne
  • ccheever