Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

livepeer/livepeer-demo-react-native

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

livepeer-demo-react-native

Demo Video

This is a demo React Native live streaming application built with the Livepeer Studio API. It can serve as a starting point for building cross-platform mobile live streaming apps.

Installation

cd GoLive

# Install node dependencies
yarn

# Install iOS dependencies
cd ios && pod install && cd ..

Development

Android

To run on android simulator, use the following command:

yarn android

iOS

In order to use the broadcasting functionality, you'll need to run the app on an actual ios device:

npx react-native run-ios --device DEVICE_NAME

If you just want to run the app in a simulator, everything else should still work as intended with the following command:

yarn ios

Troubleshooting

pod install is failing

If you run into issues running pod install on macOS, try updating with the following command:

sudo gem install -n /usr/local/bin cocoapods

nvm and XCode 12

If you run into issues finding node during build time, you may be a victim of this issue.

Commenting out all of the bash code in node_modules/react-native/scripts/find-node.sh worked for me, but I also have to remember to do it each time I install a new dependency.

Assets aren't loading properly

You may need to run react-native-asset. The docs can be found here.