Installation
note
This package uses react-hooks and therefore will need
react-native 0.59 or above (recommended - 0.60 or above)
- First install
react-native-webview
.
React Native CLI app - Instructions
- React Native
0.60
and above, install the latest version of react-native-webview. - React Native below
0.60
, react-native-webview version6.11.1
is the last version that supports it.
- React Native
Expo App - Instructions
- Install
yarn - recommended
yarn add react-native-youtube-iframe
npm
npm install react-native-youtube-iframe
npm has some issues with peer dependencies where it tries to install all peer dependencies by default. If your project does not use react 17, it might case install failures. To get around this, use
npm install react-native-youtube-iframe --legacy-peer-deps