File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 99}
1010```
1111
12- ##### 2. Add font files
12+ ##### 2. Add font files.
1313Add font files(otf, ttf, ...) in font assets folder.
1414
1515##### 3. Run the following command.
@@ -21,14 +21,18 @@ This links all fonts(`app/fonts` in example) to iOS & Android projects.
2121##### 4. Add font component.
2222Add font components(` SFProDisplayMedium.js ` , ...) in your project.
2323
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
2629import { SFProDisplayMedium } from ' ../SFProDisplayMedium.js' ;
2730...
2831< SFProDisplayMedium style = {styles.fontStyle }>
2932 Text Here
3033< / SFProDisplayMedium >
3134```
35+
3236## Demo
3337You can find demo [ here] ( https://github.com/atoami/react-native-navigation-redux-starter-kit ) .
3438
You can’t perform that action at this time.
0 commit comments