@erikd234/react-native-youtube-iframe-parrot
v1.1.0
Published
A simple wrapper around the youtube iframe js API for react native (erikd234 fork)
Maintainers
Readme
React Native Youtube iframe (Parrot Fork)
A wrapper of the Youtube IFrame player API build for react native.
This is a fork of the original react-native-youtube-iframe package by Ananthu P Kanive.
- ✅ Works seamlessly on both ios and android platforms
- ✅ Does not rely on the native youtube service on android (prevents unexpected crashes, works on phones without the youtube app)
- ✅ Uses the webview player which is known to be more stable compared to the native youtube app
- ✅ Access to a vast API provided through the iframe youtube API
- ✅ Supports multiple youtube player instances in a single page
- ✅ Fetch basic video metadata without API keys (uses oEmbed)
- ✅ Works on modals and overlay components
- ✅ Expo support

Installation
Install the package using npm or yarn:
npm install @erikd234/react-native-youtube-iframe-parrot
# or
yarn add @erikd234/react-native-youtube-iframe-parrotUsage
The API is identical to the original package:
import YoutubeIframe from '@erikd234/react-native-youtube-iframe-parrot';
// Use it the same way as the original package
<YoutubeIframe height={200} play={playing} videoId={'iee2TATGMyI'} />;Documentation
For detailed usage instructions, refer to the original documentation: react-native-youtube-iframe
Contributing
Pull requests are welcome!
Read the contributing guide for project setup and other info
