Skip to content

Commit

Permalink
Updated borderColor view property to UIColor (facebook#33176)
Browse files Browse the repository at this point in the history
Summary:
In facebook@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: facebook#33176

Test Plan: Nothing to test. See PR facebook#29728

Reviewed By: javache

Differential Revision: D34461141

Pulled By: genkikondo

fbshipit-source-id: 51adf39c1cebe8e3b53285961358e4c7f26192db
  • Loading branch information
danilobuerger authored and Saadnajmi committed Jan 14, 2023
1 parent 4607b93 commit 14b874f
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 @@ -359,7 +359,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 14b874f

Please sign in to comment.