message: Ensured pod installs on RN < 0.70
  Copied this from react-native-screens, which copied it from react-native-safe-area-context (https://github.com/software-mansion/react-native-screens/pull/1615). Don't use the new codegen features on React Native < 0.70
diff: +let supportsCodegenConfig = false;
  +try {
  + const rnCliAndroidVersion =
  + require('@react-native-community/cli-platform-android/package.json').version;
  + const [major] = rnCliAndroidVersion.split('.');
  + supportsCodegenConfig = major >= 9;
  +} catch (e) {
  +}
  +
  module.exports = {
  dependency: {
  platforms: {
  - android: {
  + android: supportsCodegenConfig ? {
  componentDescriptors: [
  'NVActionBarComponentDescriptor',
  'NVBarButtonComponentDescriptor',
  @@ -28,7 +37,7 @@ module.exports = {
  'NVToolbarComponentDescriptor',
  ],
  cmakeListsPath: "../cpp/CMakeLists.txt"
  - },
  + } : {},
  },
  },
  };
  \ No newline at end of file
  