Skip to content

Commit d6163d7

Browse files
gabrieldonadelfacebook-github-bot
authored andcommitted
Update ios pod post_install logic for detecting if hermes is enabled (#41286)
Summary: Follow up of #41284 (comment) We should not rely on checking if the `React-hermes` pod is present to determine if hermes is enabled ## Changelog: [IOS] [CHANGED] - Update ios pod post_install logic for detecting if hermes is enabled Pull Request resolved: #41286 Test Plan: Run `use_react_native!(hermes => false)` should not add `USE_HERMES = true;` to `project.pbxproj` Reviewed By: blakef Differential Revision: D50899654 Pulled By: cipolleschi fbshipit-source-id: a5ab5b0117c61014e77b780c50bf349da92c6342
1 parent f3474cc commit d6163d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-native/scripts/react_native_pods.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def react_native_post_install(
237237
ReactNativePodsUtils.apply_mac_catalyst_patches(installer) if mac_catalyst_enabled
238238

239239
fabric_enabled = ENV['RCT_FABRIC_ENABLED'] == '1'
240-
hermes_enabled = ReactNativePodsUtils.has_pod(installer, "React-hermes")
240+
hermes_enabled = ENV['USE_HERMES'] == '1'
241241

242242
if hermes_enabled
243243
ReactNativePodsUtils.set_gcc_preprocessor_definition_for_React_hermes(installer)

0 commit comments

Comments
 (0)