/RNGCArm

Example project for building with Arm (M1/M2) Macs

Primary LanguageJava

RNGC Arm Example

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:

  1. npx react-native init RNGCArm
  2. cd RNGCArm
  3. yarn add react-native-google-cast
  4. Create react-native.config.js:
    module.exports = {
      dependencies: {
        'react-native-google-cast': {
          platforms: {
            // disable autolinking because we specify a variant in Podfile
            ios: null,
          },
        },
      },
    };
  5. Add to ios/Podfile:
    pod 'react-native-google-cast/NoBluetoothArm', path: '../node_modules/react-native-google-cast/'
  6. cd ios && pod install
  7. Setup