Skip to content

Expose Switch, ProgressBar, SafeAreaView, Modal and VirtualView headers via prefab - #60357

Open
lazerg wants to merge 1 commit into
react:mainfrom
lazerg:fix/issue-60354-prefab-component-headers
Open

lazerg wants to merge 1 commit into
react:mainfrom
lazerg:fix/issue-60354-prefab-component-headers

Conversation

@lazerg

@lazerg lazerg commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary:

libreactnative.so already merges rrc_modal, rrc_progressbar, rrc_safeareaview and rrc_switch, and CoreComponentsRegistry.cpp registers those plus VirtualView, but the reactnative prefab doesn't ship any of their headers. So a library building against the AAR can't include AndroidSwitchComponentDescriptor.h, AndroidProgressBarComponentDescriptor.h, SafeAreaViewComponentDescriptor.h, ModalHostViewComponentDescriptor.h or VirtualViewComponentDescriptor.h. This adds their folders to preparePrefab so they resolve at the same include paths the in-tree code uses, like #59954 did for rrc_scrollview.

Fixes #60354

Changelog:

[ANDROID] [FIXED] - Expose Switch, ProgressBar, SafeAreaView, Modal and VirtualView headers via prefab

Test Plan:

I couldn't run preparePrefab here since I don't have the Android SDK. Instead I took the prefab includes from the 0.89.0-rc.3 react-android AAR (plus jsi and fbjni), and ran clang++ -fsyntax-only on a file that includes the five descriptors and returns concreteComponentDescriptorProvider<...>() for each, like the reproducer does. With the stock AAR it fails with 'react/renderer/components/androidswitch/AndroidSwitchComponentDescriptor.h' file not found. After I copied the headers in with the layout these new Pairs produce, it compiles.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 28, 2026
@github-actions github-actions Bot added the Meta Review Required This PR is considered risky and requires Meta to import it to do more testing before merging. label Nov 28, 2026
@facebook-github-tools facebook-github-tools Bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Nov 28, 2026
@github-actions

Copy link
Copy Markdown

Visual regression

No visual differences at d0a1a45a2730.

ios: no capture

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Meta Review Required This PR is considered risky and requires Meta to import it to do more testing before merging. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

1 participant