Created
July 11, 2017 14:17
-
-
Save FreddyPoly/1c947a7977e51130331c0cbc342ed429 to your computer and use it in GitHub Desktop.
[REACT NATIVE] Adding custom font
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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