From a385cecbeae0f0f498fc764367932fff658ef626 Mon Sep 17 00:00:00 2001 From: Jakub Piasecki Date: Mon, 7 Sep 2026 03:58:10 -0700 Subject: [PATCH] Drop unused Hermes import from RCTAppSetupUtils (#58056) Summary: Pull Request resolved: https://github.com/react/react-native/pull/58056 `RCTAppSetupUtils.h` imports `` but names nothing from it, so the import and the conditional that wrapped only it are removed. This unblocks classifying the Hermes executor as a private target under the three-tier C++ stable API visibility model, which it cannot be while a public header reaches it. Code that relied on reaching `HermesExecutorFactory` through this header should import it directly. Changelog: [iOS][Changed] - `RCTAppSetupUtils.h` no longer transitively imports `HermesExecutorFactory.h` Reviewed By: javache Differential Revision: D116934198 fbshipit-source-id: f1d6c82cb658cfdbc0581b6132ae3516982a1b75 --- .../react-native/Libraries/AppDelegate/RCTAppSetupUtils.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/react-native/Libraries/AppDelegate/RCTAppSetupUtils.h b/packages/react-native/Libraries/AppDelegate/RCTAppSetupUtils.h index d76708c2f95..9053e656326 100644 --- a/packages/react-native/Libraries/AppDelegate/RCTAppSetupUtils.h +++ b/packages/react-native/Libraries/AppDelegate/RCTAppSetupUtils.h @@ -13,10 +13,6 @@ #import -#if USE_THIRD_PARTY_JSC != 1 -#import -#endif - #import #import