Skip to content

THEOplayer/theolive-samples-react-native

Repository files navigation

react-native-theolive-samples

Samples for the THEOlive React Native SDK.

How to run the sample app

Step 1: Prerequisites

Check out this repository and make sure your React Native environment setup is complete.

Step 2: Build

Use yarn to build:

yarn

Step 3: Run

yarn example run

Customize

The sample app uses the THEOlivePlayerView component to play a THEOlive channel. It has a onPlayerReady callback to signal when the player API is available.

Make sure to replace my-channel-id with your actual channel ID:

<THEOlivePlayerView
  onPlayerReady={(player: THEOlivePlayer) => {
    // Load your channelId:
    player.loadChannel('my-channel-id');
  }}
/>

License

MIT


Made with create-react-native-library

About

A samples repository for the THEOlive React Native SDK.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published