Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/theoplayer/theolive-samples-react-native

A samples repository for the THEOlive React Native SDK.
https://github.com/theoplayer/theolive-samples-react-native

Last synced: 15 days ago
JSON representation

A samples repository for the THEOlive React Native SDK.

Awesome Lists containing this project

README

        

# 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](https://reactnative.dev/docs/environment-setup) is complete.

### Step 2: Build

Use yarn to build:

```shell
yarn
```

### Step 3: Run

```shell
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:

```tsx
{
// Load your channelId:
player.loadChannel('my-channel-id');
}}
/>
```

## License

MIT

---

Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)