Skip to content

Instantly share code, notes, and snippets.

@FreddyPoly
Created July 11, 2017 14:17
Show Gist options
  • Save FreddyPoly/1c947a7977e51130331c0cbc342ed429 to your computer and use it in GitHub Desktop.
Save FreddyPoly/1c947a7977e51130331c0cbc342ed429 to your computer and use it in GitHub Desktop.
[REACT NATIVE] Adding custom font
1. Get the fonts (.ttf)
2. Paste the fonts in `./src/assets/fonts/`
3. In `package.json` add:
“rnpm”: {
“assets”: [“./src/assets/fonts”]
}
4. Run `react-native link`
5. Discard the changes made to Android files (settings.gradle, build.gradle, MainApplication...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment