@@ -11,6 +11,7 @@ A wrapper of the Youtube IFrame player API build for react native.
11
11
- ✅ Supports multiple youtube player instances in a single page
12
12
- ✅ Fetch basic video metadata without API keys (uses oEmbed)
13
13
- ✅ Works on modals and overlay components
14
+ - ✅ Expo support
14
15
15
16
## Prerequisite
16
17
@@ -20,10 +21,15 @@ This package uses react-hooks and therefore will need **react-native `0.59` or a
20
21
21
22
## Installation
22
23
23
- 1 . First install ` react-native-webview ` . [ Instructions here] ( https://github.com/react-native-community/react-native-webview/blob/master/docs/Getting-Started.md )
24
+ 1 . First install ` react-native-webview ` .
25
+
26
+ - Bare React Native app - [ Instructions] ( https://github.com/react-native-community/react-native-webview/blob/master/docs/Getting-Started.md )
27
+ - React Native version ** ` 0.60 ` and above** , install the latest version of react-native-webview
28
+ - React Native version ** below ` 0.60 ` ** , react-native-webview version ` 6.11.1 ` is the last version that supports it.
29
+
30
+ - Expo Managed App - [ Instructions] ( https://docs.expo.io/versions/latest/sdk/webview/ )
31
+
24
32
25
- - React Native version ** ` 0.60 ` and above** , install the latest version of react-native-webview
26
- - React Native version ** below ` 0.60 ` ** , react-native-webview version ` 6.11.1 ` is the last version that supports it.
27
33
28
34
2 . Run - ` npm install react-native-youtube-iframe `
29
35
@@ -44,7 +50,7 @@ const [playing, setPlaying] = useState(true);
44
50
width= {400 }
45
51
videoId= {" AVAc1gYLZK0" }
46
52
play= {playing}
47
- onChangeState= {event => console .log (event )}
53
+ onChangeState= {event => console .log (event )}
48
54
onReady= {() => console .log (" ready" )}
49
55
onError= {e => console .log (e)}
50
56
onPlaybackQualityChange= {q => console .log (q)}
0 commit comments