Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kevinrodriguez-io/react-native-get-google-font
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.
https://github.com/kevinrodriguez-io/react-native-get-google-font
bare font google-font react-native
Last synced: 2 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/kevinrodriguez-io/react-native-get-google-font
- Owner: kevinrodriguez-io
- Created: 2021-02-17T05:36:33.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-17T07:22:00.000Z (almost 4 years ago)
- Last Synced: 2024-10-31T06:22:44.700Z (3 months ago)
- Topics: bare, font, google-font, react-native
- Language: JavaScript
- Homepage:
- Size: 26.4 KB
- Stars: 12
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React Native Get Google Font
## Summary
I made this package for those who don't want to introduce an extra "loading" state for their applications or having to go
ahead and setup the splashscreen and Apploading components.What this little helper tool does is:
1. Grabs the fonts from Github.
2. Puts them under assets/fonts.
3. Renames the fonts to match apple postscript so you can have only one style `fontFamily` per platform (except web, maybe).
4. Optionally runs `react-native link` to link the assets, creating react-native.config.js if it doesn't exists (RN >= 60).
5. Creates a little guide on how to use the fresh downloaded fonts.That's it.
## Usage
1. `npx react-native-get-google-font`.
2. Provide your font name (lowercase, check packages from expo-google-fonts).
3. Create your github user token and add it on the terminal.
4. Follow the wizard steps, and enjoy dead-simple font install.