Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/theoplayer/theolive-samples-react-native
- Owner: THEOplayer
- License: mit
- Created: 2023-10-31T10:01:36.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-21T08:36:35.000Z (3 months ago)
- Last Synced: 2024-10-21T11:55:42.590Z (3 months ago)
- Language: Java
- Size: 2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)