renative
renative copied to clipboard
React-native-google-cast not working
Hello! I'm currently setting up react-native-google-cast package in my project, for both Android and iOS. I think I have everything I need to complete the Android Installation & Setup steps, however I'm stuck on this:
const client = useRemoteMediaClient();
if (client) {
client.loadMedia({
data
});
}
I'm using renative: 0.31.1 and react-native: 0.61.2 to develop apps for both Android and iOS.
Dependencies were inserted in android/app/build.gradle
accordingly to the Docs
Below you can see examples of how I'm editing the AndroidManifest, MainActivity.
Am I overlooking something? Thanks in advance!
@kasinskas any ideas on this?
@mihaiblaga89 seems like it was the issue with Google Play Services not being enabled on the emulator https://github.com/react-native-google-cast/react-native-google-cast/issues/448, so can be closed most likely
hello @mihaiblaga89 @kasinskas, I had to ensure that my Android emulator had the Play Store and Google Play Services enabled after properly installing and configuring the package according to the docs.
Everything went smoothly, regarding the iOS emulator.
Closing as solved