The google-cast-sdk
now supports building on an Arm (M1/M2) Mac without extra steps, so this example is no longer needed. Just use react-native-google-cast as normal.
This is an example of configuring react-native-google-cast to build on an Arm (M1/M2) Mac.
This example was created using the following steps:
npx react-native init RNGCArm
cd RNGCArm
yarn add react-native-google-cast
- Create
react-native.config.js
:module.exports = { dependencies: { 'react-native-google-cast': { platforms: { // disable autolinking because we specify a variant in Podfile ios: null, }, }, }, };- Add to
ios/Podfile
:pod 'react-native-google-cast/NoBluetoothArm', path: '../node_modules/react-native-google-cast/'cd ios && pod install
- Setup