From 14b874f78052fea9c4763d758b1f1d2727fd8d21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danilo=20B=C3=BCrger?= Date: Fri, 25 Feb 2022 08:59:09 -0800 Subject: [PATCH] Updated borderColor view property to UIColor (#33176) Summary: In https://github.com/facebook/react-native/commit/c974cbff04a8d90ac0f856dbada3fc5a75c75b49 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: https://github.com/facebook/react-native/pull/33176 Test Plan: Nothing to test. See PR https://github.com/facebook/react-native/pull/29728 Reviewed By: javache Differential Revision: D34461141 Pulled By: genkikondo fbshipit-source-id: 51adf39c1cebe8e3b53285961358e4c7f26192db --- React/Views/RCTViewManager.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/React/Views/RCTViewManager.m b/React/Views/RCTViewManager.m index 8f276d1297d30f..b5018eadc772f2 100644 --- a/React/Views/RCTViewManager.m +++ b/React/Views/RCTViewManager.m @@ -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;