Skip to content

Commit

Permalink
[iOS] Add FabricComponents to Podfile (#3388)
Browse files Browse the repository at this point in the history
## Description

This PR updates `RNGestureHandler.podspec` to fix builds on iOS, which broke after #3338.

Fixes #3385 

## Test plan

Verified by users (see [issue](#3385))

Tested on fresh React Native 0.77 app with the following line in `Podfile`:

```rb
use_frameworks! :linkage => :static
```
  • Loading branch information
m-bert authored Feb 10, 2025
1 parent 7c3e002 commit 32db444
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions RNGestureHandler.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 32db444

Please sign in to comment.