diff --git a/SegmentedControlTab.js b/SegmentedControlTab.js index 1a4ab16..45bfdb9 100644 --- a/SegmentedControlTab.js +++ b/SegmentedControlTab.js @@ -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}