If there are only two tabs, add a right border width of 1 to the first tab

This commit is contained in:
Jack Plane
2017-12-21 15:30:38 -07:00
parent 31aebc8eb8
commit f31e512570

View File

@@ -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 (