Skip to content

Commit

Permalink
Update with shadowOpacity
Browse files Browse the repository at this point in the history
  • Loading branch information
lyzhan7 committed Aug 10, 2022
1 parent 5f594b4 commit 0051dac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion React/Views/RCTView.m
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ - (NSShadow*)shadow {
if (layer.shadowColor != nil && layer.shadowOpacity > 0) {
NSShadow *shadow = [NSShadow new];

shadow.shadowColor = [NSColor colorWithCGColor:layer.shadowColor];
shadow.shadowColor = [[NSColor colorWithCGColor:layer.shadowColor] colorWithAlphaComponent:layer.shadowOpacity];
shadow.shadowOffset = layer.shadowOffset;
shadow.shadowBlurRadius = layer.shadowRadius;

Expand Down

0 comments on commit 0051dac

Please sign in to comment.