From 6da6055b0ae249a7be14f61889ce25c6a0b03851 Mon Sep 17 00:00:00 2001 From: Tymoteusz Boba Date: Tue, 27 Aug 2024 13:38:23 +0200 Subject: [PATCH] fix(iOS): Change import of RectUtil.h file to react/renderer/components (#2319) ## Description In the newest version of screens, there's a bug where compiler can't find RectUtil.h file from `utils/RectFile.h` during the compile phase of RNSScreenComponentDescriptor file. This PR fixes this by changing the path of RectUtil.h file to file. Fixes #2306. ## Changes - Changed import of RectUtil.h file in RNSScreenComponentDescriptor.h file ## Test code and steps to reproduce - Download reproducer from https://github.com/jankosecki/react-native-upgrade-tester/tree/rn-0.75 - Delete patches/react-native-screens+3.34.0.patch - Clean up node_modules in case patch already applied - Run yarn setup (it invokes "pod-install": "(cd ./ios ; RCT_NEW_ARCH_ENABLED=1 USE_FRAMEWORKS=static bundle exec pod install --repo-update)" which enables new architecture) - Open XCode to set up development team (provided repro contains None team in Signing & Capabilities) - Run yarn start - Run yarn ios or trigger build from XCode (yarn ios causes a massive error output with different "error" lines but XCode offers a clear reason. ## Checklist - [ ] Ensured that CI passes --- .../components/rnscreens/RNSScreenComponentDescriptor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/cpp/react/renderer/components/rnscreens/RNSScreenComponentDescriptor.h b/common/cpp/react/renderer/components/rnscreens/RNSScreenComponentDescriptor.h index 37aac4e1ac..53415e9a8c 100644 --- a/common/cpp/react/renderer/components/rnscreens/RNSScreenComponentDescriptor.h +++ b/common/cpp/react/renderer/components/rnscreens/RNSScreenComponentDescriptor.h @@ -5,9 +5,9 @@ #endif #include #include +#include #include #include "RNSScreenShadowNode.h" -#include "utils/RectUtil.h" namespace facebook { namespace react {