@expo-google-fonts/dev
v0.2.3
Published
Load 1488 font families from Google Fonts over the network while developing your Expo app
Downloads
2,176
Readme
@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.