react-native-get-google-font
v0.1.1
Published
An alternative to expo-font and @expo-google-font/some-font that allows bare react-native users to pre-install their favorite expo-google-fonts with no dependencies and load them ahead of time.
Readme
React Native Get Google Font
Summary
I made this package because for those who don't want to introduce an extra "loading" state for their applications, having to go ahead and setup the splashscreen and Apploading components.
What this little helper tool does is:
- Grabs the fonts from Github.
- Puts them under assets/fonts.
- Renames the fonts to match apple postscript so you can have only one style
fontFamilyper platform (except web, maybe). - Optionally runs
react-native linkto link the assets, creating react-native.config.js if it doesn't exists (RN >= 60). - Creates a little guide on how to use the fresh downloaded fonts.
That's it.
Usage
npx react-native-get-google-font
