-
Notifications
You must be signed in to change notification settings - Fork 138
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
[WIP] Fix issue where shadows may not appear on views #1227
Conversation
Credit goes to @appden. This isn't ready to commit because NSShadow.shadowBlurRadius is slightly different than CALayer.shadowRadius.
|
Base commit: 71e8921 |
Thanks! I didn't realize there was a |
@lyahdav a quick update from our side. We have a bug on our plate to to fix shadows on macOS, but the engineer that's assigned to is on vacation, so we'll revisit once they are back. When I locally tested this, it almost felt like they were two shadows showing up, one from the original iOS layer.shadow* setters, and one from the NSShadow property you added. As for |
From local testing, it seems the shadow on the layer through the props in RCTViewManager is still showing up half the time, so it feels like we have 2 shadows:
Could you instead change the RCTVIewManager macros to |
@Saadnajmi I wasn't planning on trying to land this anytime soon, I just made this PR to share WIP. You can make a new PR with your suggested change. |
It seems that issue was fixed in #1352 |
Yep! We needed a little bit of extra code, so do give it a look. |
Credit goes to @appden. This isn't ready to commit because NSShadow.shadowBlurRadius is slightly different than CALayer.shadowRadius.
Fixes #824