# react-native-utube-player

> YouTube player for React-Native

Latest version **1.0.0** (published 2019-01-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-utube-player
pnpm add react-native-utube-player
yarn add react-native-utube-player
bun add react-native-utube-player
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-01-18 |
| First published | 2019-01-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.5 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Krzysztof 'Krizzu' Borowy |
| Maintainers | krizzu |

## Links

- npm: https://www.npmjs.com/package/react-native-utube-player
- npm.io page: https://npm.io/package/react-native-utube-player

## Recent versions

- 1.0.0 (latest) — 2019-01-18

## README

# UTube Player for React Native

## Before you use it

I just want to let you know, this is a demonstration of RN Native Module, written in Kotlin. You can learn more in my Article about it (link to be included later). This lib is not working on iOS.

## Installation

1. Get the package

`$ (yarn|npm) install react-native-utube-player`

2. Link it

`$ (yarn|npx) link react-native-utube-player`

3. Make sure that that your minSdk is 19 in

```groovy

// android/app/build.gradle

defaultConfig {
    // ...

    minSdkVersion 19

    // ...
}
```

4. Allow for app backup

```xml
// android/app/src/main/AndroidManifest.xml


<application
  // ...
  android:allowBackup="true"
  // ...
>
```

## Usage

```js
props = {
  width: number | string,
  height: number | string,
  videoId: string // i.e: yX8yrOAjfKM 
}
```

## Example

```js

import  UTubePlayerView  from 'react-native-utube-player';

const player = ({ videoId }) => (
  <View>
    <UTubePlayerView width="100%" height={200} videoId={videoId} />
  </View>
)

```

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