Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/react-native-google-cast/rngcexpo

Expo example using react-native-google-cast
https://github.com/react-native-google-cast/rngcexpo

Last synced: about 2 months ago
JSON representation

Expo example using react-native-google-cast

Awesome Lists containing this project

README

        

# RNGC Expo Example

> This is an example of integrating https://github.com/react-native-google-cast/react-native-google-cast in Expo 51.

This example was created using the following steps:

1. `npx create-expo-app@latest --template blank-typescript`

2. `cd RNGCExpo`

3. `npm i react-native-google-cast`

4. `npx expo install expo-build-properties expo-dev-client`

5. Add to `app.json`:

```json
{
"expo": {
"plugins": [
"react-native-google-cast",
["expo-build-properties", { "ios": { "deploymentTarget": "14.0" } }]
]
}
}
```

6. Add to `App.tsx`

```tsx
import { CastButton, useCastState } from "react-native-google-cast";

;
```

7. `npm run android` or `npm run ios` to build and run the app.