Samples for the THEOlive React Native SDK.
Check out this repository and make sure your React Native environment setup is complete.
Use yarn to build:
yarn
yarn example run
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');
}}
/>
MIT
Made with create-react-native-library