An open API service indexing awesome lists of open source software.

https://github.com/fausto95/react-native-jwplayer

JwPlayer Component for React-Native
https://github.com/fausto95/react-native-jwplayer

Last synced: 7 months ago
JSON representation

JwPlayer Component for React-Native

Awesome Lists containing this project

README

          

# JWPlayer Component For React Native

## Installing

`$ yarn add @fausto95/react-native-jwplayer`

### Pod
Add this to your Podfile

```ruby
pod 'RNJWPlayer', :path => '../node_modules/@fausto95/react-native-jwplayer/RNJWPlayer.podspec'
```

### Linking

> If you're using react-native ^0.60, the linking is handled by default

`$ react-native link @fausto95/react-native-jwplayer`

## Usage
```javascript
import React from 'react';
import {View} from 'react-native';
import JWPlayer from '@fausto95/react-native-jwplayer';

const App = () => {
return (



);
};

const styles = StyleSheet.create({
container: {
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
},
player: {
width: 360,
height: 180,
},
});
export default App;
```

### Props
- `fileUri`: Link for the video file.
- `playerKey`: Your JWPlayer key.

### TODO

- [x] iOS

- [ ] Android

- [ ] Tracks(Subtitles)

- [ ] Thumbnail

- [ ] Playback Controls Functions

- [ ] Playlist

- [ ] Skinning

### Contributions

Any contribution is welcome, send PR 😎.