From f31e51257065faac120f276883e073db0dc89176 Mon Sep 17 00:00:00 2001 From: Jack Plane Date: Thu, 21 Dec 2017 15:30:38 -0700 Subject: [PATCH] If there are only two tabs, add a right border width of 1 to the first tab --- SegmentedControlTab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SegmentedControlTab.js b/SegmentedControlTab.js index 45bfdb9..569f5b3 100644 --- a/SegmentedControlTab.js +++ b/SegmentedControlTab.js @@ -73,7 +73,7 @@ const SegmentedControlTab = ({ onTabPress, }) => { - const firstTabStyle = [{ borderRightWidth: 0, borderTopLeftRadius: borderRadius, borderBottomLeftRadius: borderRadius }] + const firstTabStyle = [{ borderRightWidth: values.length == 2 ? 1 : 0, borderTopLeftRadius: borderRadius, borderBottomLeftRadius: borderRadius }] const lastTabStyle = [{ borderLeftWidth: 0, borderTopRightRadius: borderRadius, borderBottomRightRadius: borderRadius }] return (