Skip to content

Commit 050d0fc

Browse files
committed
Update README.md
1 parent c40cacd commit 050d0fc

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}
1010
```
1111

12-
##### 2. Add font files
12+
##### 2. Add font files.
1313
Add 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.
2222
Add 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
2629
import { SFProDisplayMedium } from '../SFProDisplayMedium.js';
2730
...
2831
<SFProDisplayMedium style={styles.fontStyle}>
2932
Text Here
3033
</SFProDisplayMedium>
3134
```
35+
3236
## Demo
3337
You can find demo [here](https://github.com/atoami/react-native-navigation-redux-starter-kit).
3438

0 commit comments

Comments
 (0)