From bd1d33533a0bbb32d98edb04a6d9d7f2871d1f1f Mon Sep 17 00:00:00 2001 From: awitherow Date: Mon, 6 Feb 2017 09:47:30 -0800 Subject: [PATCH] Allow specific border width styling Summary: ahmedre, is this in accordance to what you mentioned in comment https://github.com/facebook/react-native/issues/11042#issuecomment-269892926 ? fixes #11042 NO TEST PLAN AS OF YET! NOT READY. I am going to attempt to show this in my current application today. Closes https://github.com/facebook/react-native/pull/11706 Differential Revision: D4494439 Pulled By: mkonicek fbshipit-source-id: 2e1ee4c4a8347ddb29ee28bafe5ca5f7b6c04317 --- .../facebook/react/views/view/ReactViewBackgroundDrawable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewBackgroundDrawable.java b/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewBackgroundDrawable.java index ab84ef512b7807..104ecaae2986bd 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewBackgroundDrawable.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewBackgroundDrawable.java @@ -102,7 +102,7 @@ public void draw(Canvas canvas) { boolean roundedBorders = mBorderCornerRadii != null || (!YogaConstants.isUndefined(mBorderRadius) && mBorderRadius > 0); - if ((mBorderStyle == null || mBorderStyle == BorderStyle.SOLID) && !roundedBorders) { + if (!roundedBorders) { drawRectangularBackgroundWithBorders(canvas); } else { drawRoundedBackgroundWithBorders(canvas);