Skip to content

Commit

Permalink
Updated borderColor view property to UIColor (#33176)
Browse files Browse the repository at this point in the history
Summary:
In c974cbf I changed the borderColor from CGColor to UIColor. I missed this view property which should also be updated to reflect the original change.

## Changelog

[iOS] [Fixed] - Set RCTView borderColor to UIColor

Pull Request resolved: #33176

Test Plan: Nothing to test. See PR #29728

Reviewed By: javache

Differential Revision: D34461141

Pulled By: genkikondo

fbshipit-source-id: 51adf39c1cebe8e3b53285961358e4c7f26192db
  • Loading branch information
danilobuerger authored and facebook-github-bot committed Feb 25, 2022
1 parent 34c953f commit 267d36d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion React/Views/RCTViewManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ - (RCTShadowView *)shadowView
view.layer.cornerRadius = json ? [RCTConvert CGFloat:json] : defaultView.layer.cornerRadius;
}
}
RCT_CUSTOM_VIEW_PROPERTY(borderColor, CGColor, RCTView)
RCT_CUSTOM_VIEW_PROPERTY(borderColor, UIColor, RCTView)
{
if ([view respondsToSelector:@selector(setBorderColor:)]) {
view.borderColor = json ? [RCTConvert UIColor:json] : defaultView.borderColor;
Expand Down

0 comments on commit 267d36d

Please sign in to comment.