From 32db4449a5bcf271e2700d77e1ab4e9248e60d1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Bert?= <63123542+m-bert@users.noreply.github.com> Date: Mon, 10 Feb 2025 12:01:34 +0100 Subject: [PATCH] [iOS] Add FabricComponents to Podfile (#3388) ## Description This PR updates `RNGestureHandler.podspec` to fix builds on iOS, which broke after #3338. Fixes #3385 ## Test plan Verified by users (see [issue](https://github.com/software-mansion/react-native-gesture-handler/issues/3385)) Tested on fresh React Native 0.77 app with the following line in `Podfile`: ```rb use_frameworks! :linkage => :static ``` --- RNGestureHandler.podspec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/RNGestureHandler.podspec b/RNGestureHandler.podspec index 1ae15b20db..f532cfad14 100644 --- a/RNGestureHandler.podspec +++ b/RNGestureHandler.podspec @@ -29,4 +29,12 @@ Pod::Spec.new do |s| else s.dependency "React-Core" end + + if ENV['USE_FRAMEWORKS'] != nil && ENV['RCT_NEW_ARCH_ENABLED'] == '1' + add_dependency(s, "React-FabricComponents", :additional_framework_paths => [ + "react/renderer/textlayoutmanager/platform/ios", + "react/renderer/components/textinput/platform/ios", + ]) + end + end