react-native-youtube-iframe
A simple wrapper around the youtube iframe js API for react native
by ananthukaniveFree
Description
React Native Youtube-iframe is a wrapper for React Native around the YouTube iframe JavaScript API. It shows a YouTube video inside your app using a webview player, rather than the native YouTube service on Android. The project says this keeps it working on phones that do not have the YouTube app installed, and avoids crashes that the native service can cause. It works on both iOS and Android. Because it uses the iframe API, you get access to the player methods and events that the YouTube iframe API exposes, and the documentation lists component props, player functions and module methods. The package includes a basic usage example and an installation section. For cases where you want the player page hosted yourself, the docs describe a self-hosted static HTML page that handles the player. The FAQ covers options such as removing the context menu, showing elapsed time, and a crash that can occur with react-navigation. The project is available on npm and has its source on GitHub. It suits React Native developers who want to embed YouTube videos in an app without writing their own webview player.…
Highlights
- Uses the YouTube iframe API in a webview
- Works on iOS and Android
- Does not rely on the YouTube app
- Self-host option for the player page
Ratings & Reviews
No ratings yet
Be the first to rate react-native-youtube-iframe.
People also visit
react-native-youtube-iframe FAQ
What is React Native Youtube-iframe?
A wrapper around the YouTube iframe JavaScript API that plays YouTube videos inside a React Native app.
Does it need the YouTube app?
No. The site says it does not rely on the native YouTube service on Android, so it works on phones without the app.
Which platforms does it support?
iOS and Android, according to the project's feature list.
Can I control the player?
Yes. The documentation lists props, player functions and module methods exposed through the iframe API.
Can I host the player page myself?
Yes. The docs describe a self-hosted static HTML page that handles the player.
What are the best react-native-youtube-iframe alternatives?
Popular alternatives to react-native-youtube-iframe include react-player, react-native-webview and @stream-io/react-native-webrtc. See all react-native-youtube-iframe alternatives




















