docs: update font docs for RN 0.60 (#1246)

This commit is contained in:
Ben Wildeman
2019-07-31 09:47:40 +01:00
committed by Dawid Urbaniak
parent 76d598654f
commit ce5ac1ad43

View File

@@ -6,13 +6,14 @@ title: Fonts
## Installing custom fonts
The easiest way to install custom fonts to your RN project is do as follow:
The easiest way to install custom fonts to your RN project is do as follows:
1. Define path to asssets directory with fonts in project '`package.json`'
1. Define path to asssets directory with fonts in project:
Example:
```js
// React Native < 0.60 package.json
...
"rnpm": {
"assets": [
@@ -20,6 +21,14 @@ The easiest way to install custom fonts to your RN project is do as follow:
]
},
...
// React Native >= 0.60 react-native.config.js
module.exports = {
...
"assets": [
"fonts"
],
...
```
Note: fonts is a folder with .ttf files