File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 9
9
}
10
10
```
11
11
12
- ##### 2. Add font files
12
+ ##### 2. Add font files.
13
13
Add font files(otf, ttf, ...) in font assets folder.
14
14
15
15
##### 3. Run the following command.
@@ -21,14 +21,18 @@ This links all fonts(`app/fonts` in example) to iOS & Android projects.
21
21
##### 4. Add font component.
22
22
Add font components(` SFProDisplayMedium.js ` , ...) in your project.
23
23
24
- ##### 5. Now, you can use the fonts anywhere in your project.
25
- ``` javascript
24
+ ##### 5. Rebuild the project.
25
+ You must rebuild the project after add font files.
26
+
27
+ ##### 6. Now, you can use the fonts anywhere in your project.
28
+ ``` typescript jsx
26
29
import { SFProDisplayMedium } from ' ../SFProDisplayMedium.js' ;
27
30
...
28
31
< SFProDisplayMedium style = {styles.fontStyle }>
29
32
Text Here
30
33
< / SFProDisplayMedium >
31
34
```
35
+
32
36
## Demo
33
37
You can find demo [ here] ( https://github.com/atoami/react-native-navigation-redux-starter-kit ) .
34
38
You can’t perform that action at this time.
0 commit comments