mirror of
https://github.com/zhigang1992/react-native-segmented-control-tab.git
synced 2026-01-12 22:50:51 +08:00
If there are only two tabs, add a right border width of 1 to the first tab
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user