We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e715c22 commit 497a6bdCopy full SHA for 497a6bd
readme.md
@@ -14,6 +14,14 @@ This package uses react-hooks and therefore will need **react-native `0.59` and
14
15
## Usage
16
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
25
```JSX
26
<YoutubePlayer
27
ref={playerRef}
0 commit comments