Skip to content

Conversation

Saadnajmi
Copy link
Collaborator

Summary:

Static View configs are a mechanism that React Native uses to ensure that the props and events a native component has match between JS and native. The JS side is statically defined, while the native side is generated based off the view manager (paper only). I think in Fabric, JS is the source of truth completely.

While running RNTester in Fabric, there were a bunch of Redbox warnings warning of static view config mismatches. This might be because we are using views through the interop layer, or there is still validation running that checks against the paper view manager even if we aren't using it. While we have these warnings, let's fix them.

Test Plan:

Launch RNTester on both iOS and macOS from this repo and see no Redboxes warning of mismatches.

@Saadnajmi Saadnajmi marked this pull request as ready for review August 12, 2025 21:57
@Saadnajmi Saadnajmi requested a review from a team as a code owner August 12, 2025 21:57
@Saadnajmi Saadnajmi changed the title fix: fix view config mismatches fix: remove view config mismatches Aug 13, 2025
@Saadnajmi Saadnajmi merged commit 3146c9c into microsoft:main Aug 13, 2025
25 checks passed
@Saadnajmi Saadnajmi deleted the viewconfig branch August 13, 2025 07:25
Saadnajmi pushed a commit that referenced this pull request Sep 5, 2025
## Summary:

When updating RCTView in
#2642, we end up
slightly changing the behavior when `didUpdateShadow` is called, causing
transparent shadows to crash the app. This breakage occurs because
`NSColor colorWithCGColor:` doesn’t accept a `NULL` `CGColorRef`;
instead, it raises an exception rather than gracefully returning `nil`.

<img height="698" alt="image"
src="https://github.com/user-attachments/assets/67413d6e-47e8-47b3-8b29-b9b553cfd19f"
/>

## Test Plan:

Run RNTester
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.

2 participants