The THEOlive React Native SDK
npm install @theolive/react-native-player
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" }
Don't forget to pod install
in your app's ios folder.
import { THEOlivePlayerView } from "@theolive/react-native-player";
// ...
<THEOlivePlayerView
onPlayerReady={(player) => {
// Use the player API to set your channelId.
player.loadChannel('my-channel-id');
}}
/>
A sample app can be found here: https://github.com/THEOplayer/theolive-samples-react-native.
MIT
Made with create-react-native-library