Skip to content

Commit 1a32c28

Browse files
committed
Merge branch 'master' of github.com:LonelyCpp/react-native-youtube-iframe
2 parents 736f203 + 300f79b commit 1a32c28

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

readme.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ A wrapper of the Youtube IFrame player API build for react native.
1111
- ✅ Supports multiple youtube player instances in a single page
1212
- ✅ Fetch basic video metadata without API keys (uses oEmbed)
1313
- ✅ Works on modals and overlay components
14+
- ✅ Expo support
1415

1516
## Prerequisite
1617

@@ -20,10 +21,15 @@ This package uses react-hooks and therefore will need **react-native `0.59` or a
2021

2122
## Installation
2223

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+
2432

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.
2733

2834
2. Run - `npm install react-native-youtube-iframe`
2935

@@ -44,7 +50,7 @@ const [playing, setPlaying] = useState(true);
4450
width={400}
4551
videoId={"AVAc1gYLZK0"}
4652
play={playing}
47-
onChangeState={event => console.log(event)}
53+
onChangeState={event => console.log(event)}
4854
onReady={() => console.log("ready")}
4955
onError={e => console.log(e)}
5056
onPlaybackQualityChange={q => console.log(q)}

0 commit comments

Comments
 (0)