Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iOS] Add FabricComponents to Podfile #3388

Merged
merged 4 commits into from
Feb 10, 2025
Merged

[iOS] Add FabricComponents to Podfile #3388

merged 4 commits into from
Feb 10, 2025

Conversation

m-bert
Copy link
Contributor

@m-bert m-bert commented Feb 6, 2025

Description

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

Fixes #3385

Test plan

Verified by users (see issue)

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

use_frameworks! :linkage => :static

@@ -29,4 +29,13 @@ Pod::Spec.new do |s|
else
s.dependency "React-Core"
end

if ENV['USE_FRAMEWORKS'] != nil && ENV['RCT_NEW_ARCH_ENABLED'] == '1'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe it'd be better to check if ENV['USE_FRAMEWORKS'] == 'static' rather than != nil, as USE_FRAMEWORKS could be set to dynamic.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've done it the same way as Live Markdown does, maybe @tomekzaw will have more insights on that

This comment was marked as duplicate.

"react/renderer/textlayoutmanager/platform/ios",
"react/renderer/components/textinput/platform/ios",
])
add_dependency(s, "React-rendererconsistency")
Copy link
Contributor

@latekvo latekvo Feb 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I see, we don't need to include the React-rendererconsistency dependency.
Both of the lacking components are provided by React-FabricComponents, which is already included 3 lines higher.

Tested on new arch RN 0.77 on a successful repro, and including React-FabricComponents was enough to fix the occurring issues.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, removed in aa8e331

@m-bert m-bert requested a review from latekvo February 10, 2025 07:29
@m-bert m-bert merged commit 32db444 into main Feb 10, 2025
4 checks passed
@m-bert m-bert deleted the @mbert/fix-ios branch February 10, 2025 11:01
@christian-hess-94
Copy link

Is this already available in 2.23? or shoudl we meanwhile still use 2.22?

@radko93
Copy link
Contributor

radko93 commented Feb 11, 2025

Seems the something failed because the v2.23.1 was not published @m-bert

@hirbod
Copy link

hirbod commented Feb 11, 2025

2.23.1 was indeed not published on npm yet.

@m-bert
Copy link
Contributor Author

m-bert commented Feb 11, 2025

Yes, I'm aware that it was not published yet, there were some complications and I hope that it will be released today

@m-bert
Copy link
Contributor Author

m-bert commented Feb 11, 2025

FYI, I've just released 2.23.1 with this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error ParagraphShadowNode.h file not found
6 participants