@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
The iOS SDK is not yet available in React Native. It is under development and will be included in the next official
release.
Usage
import { THEOlivePlayerView } from "@theolive/react-native-player";
<THEOlivePlayerView
onPlayerReady={(player) => {
// Use the player API to set your channelId.
void 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