mirror of
https://github.com/zhigang1992/react-native-segmented-control-tab.git
synced 2026-01-12 22:50:51 +08:00
Merge pull request #36 from terrysahaidak/patch-1
Fix last tab left border
This commit is contained in:
@@ -92,7 +92,7 @@ const SegmentedControlTab = ({
|
||||
onTabPress={(index) => handleTabPress(index, multiple, selectedIndex, onTabPress)}
|
||||
firstTabStyle={index === 0 ? [{ borderRightWidth: 0 }, firstTabStyle] : {}}
|
||||
lastTabStyle={index === values.length - 1 ? [{ borderLeftWidth: 0 }, lastTabStyle] : {}}
|
||||
tabStyle={[tabStyle, index !== 0 && index !== values.length - 1 ? { paddingLeft: -1 } : {}]}
|
||||
tabStyle={[tabStyle, index !== 0 && index !== values.length - 1 ? { marginLeft: -1 } : {}]}
|
||||
activeTabStyle={activeTabStyle}
|
||||
tabTextStyle={tabTextStyle}
|
||||
activeTabTextStyle={activeTabTextStyle}
|
||||
|
||||
Reference in New Issue
Block a user