mirror of
https://github.com/zhigang1992/react-native-paper.git
synced 2026-04-28 12:25:04 +08:00
docs: update font docs for RN 0.60 (#1246)
This commit is contained in:
committed by
Dawid Urbaniak
parent
76d598654f
commit
ce5ac1ad43
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user