Skip to content

Commit 497a6bd

Browse files
committed
update readme
1 parent e715c22 commit 497a6bd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

readme.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ This package uses react-hooks and therefore will need **react-native `0.59` and
1414

1515
## Usage
1616

17+
```js
18+
import React, {useRef, useState} from 'react';
19+
import YoutubePlayer from 'react-native-youtube-iframe';
20+
21+
const playerRef = useRef(null);
22+
const [playing, setPlaying] = useState(true);
23+
```
24+
1725
```JSX
1826
<YoutubePlayer
1927
ref={playerRef}

0 commit comments

Comments
 (0)