Commit d30f249
authored
fix: null shadow color crash (#2672)
## 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 RNTester1 parent a0d76f3 commit d30f249
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
764 | 764 | | |
765 | 765 | | |
766 | 766 | | |
767 | | - | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
768 | 771 | | |
769 | 772 | | |
770 | 773 | | |
| |||
0 commit comments