# react-native-youtube-iframe-2

> A simple wrapper around the youtube iframe js API for react native

Latest version **1.4.7** (published 2020-12-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-youtube-iframe-2
pnpm add react-native-youtube-iframe-2
yarn add react-native-youtube-iframe-2
bun add react-native-youtube-iframe-2
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.7 |
| Published | 2020-12-11 |
| First published | 2020-12-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 46.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ananthu P Kanive |
| Maintainers | codegames, setbap |
| Keywords | react-native, react-component, react-native-component, react, react native, mobile, ios, android, ui, youtube, youtube-iframe, iframe |

## Links

- npm: https://www.npmjs.com/package/react-native-youtube-iframe-2
- Repository: https://github.com/shahab-yousefi/react-native-youtube-iframe
- Issues: https://github.com/shahab-yousefi/react-native-youtube-iframe/issues
- npm.io page: https://npm.io/package/react-native-youtube-iframe-2

## Dependencies (1)

- [events](https://npm.io/package/events.md) ^3.2.0

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.4.7 (latest) — 2020-12-11
- 1.4.5 — 2020-12-05
- 1.4.1 — 2020-12-05
- 1.4.4 — 2020-12-05

## README

# React Native Youtube iframe + solving unavailable video problem

![npm](https://img.shields.io/npm/v/react-native-youtube-iframe-2?style=for-the-badge) ![npm](https://img.shields.io/npm/dm/react-native-youtube-iframe-2?style=for-the-badge)

A wrapper of the Youtube IFrame player API build for react native.

- ✅ solving unavalabe video 
- ✅ 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

![ios](./website/static/img/demo.gif?raw=true 'ios')

## Installation and Documentation


same as react-native-youtube-iframe just we added remote props
[react-native-youtube-iframe](https://lonelycpp.github.io/react-native-youtube-iframe/)

 ```
 <YouTube
          remote="https://shahab-yousefi.github.io/react-native-youtube-iframe/youtube.html"
          videoId={video_id} // The YouTube video ID
          height={height} // your custom height
   />
 ```

## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

## License

[MIT](https://choosealicense.com/licenses/mit/)

---
_Source: https://npm.io/package/react-native-youtube-iframe-2 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
