@theolive/react-native-player
TypeScript icon, indicating that this package has built-in type declarations

0.5.0 • Public • Published

@theolive/react-native-player

The THEOlive React Native SDK

Installation

npm install @theolive/react-native-player

Android

Make sure you add the following repositories to your app, so gradle can find the Android SDK:

maven { url "https://maven.theoplayer.com/releases" }
maven { url "https://jitpack.io" }

iOS

Don't forget to pod install in your app's ios folder.

Usage

import { THEOlivePlayerView } from "@theolive/react-native-player";

// ...

<THEOlivePlayerView
  onPlayerReady={(player) => {
    // Use the player API to set your channelId.
    player.loadChannel('my-channel-id');
  }}
/>

Sample app

A sample app can be found here: https://github.com/THEOplayer/theolive-samples-react-native.

License

MIT


Made with create-react-native-library

Package Sidebar

Install

npm i @theolive/react-native-player

Weekly Downloads

0

Version

0.5.0

License

MIT

Unpacked Size

207 kB

Total Files

135

Last publish

Collaborators

  • theotechnologies-admin