Fix UIView borderWidths not rendering correctly

Reviewed By: majak

Differential Revision: D4111231

fbshipit-source-id: f02c8f2ebda4c3e397d746ed5433afea539c9a88
This commit is contained in:
Pieter De Baets 2016-11-01 11:07:04 -07:00 committed by Facebook Github Bot
parent 1a75ba3c67
commit 95cb4ea752
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ RCT_EXPORT_VIEW_PROPERTY(onMagicTap, RCTDirectEventBlock)
RCT_CUSTOM_VIEW_PROPERTY(border##SIDE##Width, float, RCTView) \
{ \
if ([view respondsToSelector:@selector(setBorder##SIDE##Width:)]) { \
view.border##SIDE##Width = json ? [RCTConvert float:json] : defaultView.border##SIDE##Width; \
view.border##SIDE##Width = json ? [RCTConvert CGFloat:json] : defaultView.border##SIDE##Width; \
} \
} \
RCT_CUSTOM_VIEW_PROPERTY(border##SIDE##Color, UIColor, RCTView) \