Skip to content

Cleanup unneeded ReactCommon patching, and extra hostplatform overrides #14697

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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

acoates-ms
Copy link
Contributor

@acoates-ms acoates-ms commented May 23, 2025

Description

Updated React.Cpp.Props to have include paths for our platform overrides, followed by the various cxx platform directories from core. This ensures that we are consistently including our platform overrides, and only if they do not exist, including the cxx version in core.

This allowed us to remove a bunch of unneeded patching of ReactCommon.

Part of this involved dealing with our override of TextLayoutManager, which isn't a platform overridable file, instead we can inherit from the core implementation, and then inject our version into the contextContainer in FabricUIManagerModule, which allows TextInput and Paragraph to access the correct TextLayoutManager.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

Why

Cleanup of a bunch of unnecessary forked code that we were replacing in react-native.

Resolves #13391
Resolves #14674
Resolves #14216
Resolves #14131
Resolves #14692
Resolves #14664

Microsoft Reviewers: Open in CodeFlow

@acoates-ms acoates-ms requested review from a team as code owners May 23, 2025 16:17
@acoates-ms acoates-ms changed the title Cleanup aunneeded ReactCommon patching, and extra hostplatform overrides Cleanup unneeded ReactCommon patching, and extra hostplatform overrides May 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant