Skip to content

Commit 0bb572a

Browse files
author
Kyler Jensen
committed
fix(docs): updated README.md
1 parent b1c84ae commit 0bb572a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ This library aims to make life easier by allowing React Native developers to use
4141
yarn add -D @types/react-helmet
4242
```
4343

44-
2. Wrap your application's root component in a `<FontFacesProvider />` and provide a `FontLoader`:
44+
2. Wrap your application's root component in a `<FontFacesProvider />`, provide a `FontLoader`, and import the desired font faces:
4545

4646
```jsx
4747
// App.tsx
@@ -67,13 +67,12 @@ This library aims to make life easier by allowing React Native developers to use
6767
}
6868
```
6969

70-
3. Call `useFontFaces()` to import and the font faces you'd like to use and download corresponding font files:
70+
3. Just use the font family as you would normally expect:
7171

7272
```jsx
7373
// AppContent.tsx
7474

7575
import React from 'react';
76-
import { Helmet } from 'react-helmet';
7776
import { AppLoading } from 'expo';
7877

7978
export function AppContent(props: any) {}
@@ -84,9 +83,6 @@ This library aims to make life easier by allowing React Native developers to use
8483
} else {
8584
return (
8685
<View style={styles.container}>
87-
<Helmet>
88-
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900" rel="stylesheet" />
89-
</Helmet>
9086
<Text style={styles.text}>This should be Regular</Text>
9187
<Text style={[styles.text, styles.italic]}>This should be Italic</Text>
9288
<Text style={[styles.text, styles.bold]}>This should be Bold</Text>

0 commit comments

Comments
 (0)