Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/react-native-google-cast/rngcexpo
- Owner: react-native-google-cast
- Created: 2022-03-11T23:54:11.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-15T07:23:15.000Z (6 months ago)
- Last Synced: 2024-07-15T08:54:33.210Z (6 months ago)
- Language: TypeScript
- Size: 1.73 MB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.