diff --git a/packages/react-native/scripts/cocoapods/new_architecture.rb b/packages/react-native/scripts/cocoapods/new_architecture.rb index f7e95ac5aa7..02a441467bb 100644 --- a/packages/react-native/scripts/cocoapods/new_architecture.rb +++ b/packages/react-native/scripts/cocoapods/new_architecture.rb @@ -145,6 +145,12 @@ class NewArchitectureHelper return package["version"] end + # Deprecated method. This has been restored because some libraries (e.g. react-native-exit-app) still use it. + def self.folly_compiler_flags + folly_config = Helpers::Constants.folly_config + return folly_config[:compiler_flags] + end + def self.new_arch_enabled return ENV["RCT_NEW_ARCH_ENABLED"] == '0' ? false : true end