Permalink
Browse files

Fix UIView borderWidths not rendering correctly

Reviewed By: majak

Differential Revision: D4111231

fbshipit-source-id: f02c8f2ebda4c3e397d746ed5433afea539c9a88
  • Loading branch information...
javache authored and Facebook Github Bot committed Nov 1, 2016
1 parent 1a75ba3 commit 95cb4ea7521992b5c1493f92e8224ea263acc0c2
Showing with 1 addition and 1 deletion.
  1. +1 −1 React/Views/RCTViewManager.m
@@ -215,7 +215,7 @@ - (RCTViewManagerUIBlock)uiBlockToAmendWithShadowViewRegistry:(__unused NSDictio
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) \

0 comments on commit 95cb4ea

Please sign in to comment.