Playground project that demonstrates all possible APIs of the react-native-google-cast library.
The goal is to be able to explore the library's features, as well as provide an app for automatic tests.
In addition, this playground project demonstrates how to set up and use react-native-google-cast with:
Make sure you're in the playground folder:
- Run
yarn
(ornpm i
) to install dependencies - Run
yarn start
(ornpm run start
) to start Metro Bundler
cd ios && pod install
open ios/RNGCPlayground.xcworkspace
and Run from Xcode
- in Android Studio open
android/
folder and run from there
The playground app works with a custom receiver. Normally, that receiver is served from https://react-native-google-cast-playground-receiver.netlify.app.
However, if you need to make changes to the receiver and test it locally, you can temporarily use your own receiver:
- create a new custom app in Cast Publish
npm i -g serve
serve -l PORT -s receiver
- set the app id in
ios/RNGCPlayground/AppDelegate.m
(iOS) andandroid/app/src/main/AndroidManifest.xml
(Android) - you can debug the receiver in Chrome by navigating to chrome://inspect