This is an example of configuring https://github.com/react-native-google-cast/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