From 97d98fb219a3677f0102abf296a9e0b17432ecf0 Mon Sep 17 00:00:00 2001 From: Gabriel Donadel Date: Wed, 1 Nov 2023 17:23:03 -0300 Subject: [PATCH] Update ios pod post_install logic for detecting if hermes is enabled --- packages/react-native/scripts/react_native_pods.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/scripts/react_native_pods.rb b/packages/react-native/scripts/react_native_pods.rb index 4a37aefad7d67b..c1bfb0df81c813 100644 --- a/packages/react-native/scripts/react_native_pods.rb +++ b/packages/react-native/scripts/react_native_pods.rb @@ -237,7 +237,7 @@ def react_native_post_install( ReactNativePodsUtils.apply_mac_catalyst_patches(installer) if mac_catalyst_enabled fabric_enabled = ReactNativePodsUtils.has_pod(installer, 'React-Fabric') - hermes_enabled = ReactNativePodsUtils.has_pod(installer, "React-hermes") + hermes_enabled = ENV['USE_HERMES'] == '1' if hermes_enabled ReactNativePodsUtils.set_gcc_preprocessor_definition_for_React_hermes(installer)