react-native-tab-view icon indicating copy to clipboard operation
react-native-tab-view copied to clipboard

fix: TabBar with scrollEnable to take into consideration the content margins

Open andreibarabas opened this issue 5 years ago • 0 comments

If you want to use a custom TabBar like

<TabBar
      {...tabBarProps}
      scrollEnabled={true}
      contentContainerStyle={{marginLeft: 14}}
/>

currently, the last tab will be cut with 14px, as it does not take into consideration these kind of spacing.

This PR fixes that.

Motivation

The last tab item is cut with with the amount you put as padding / margin to the contentContainer.

Test plan

Let me know if you need any screenshots, but should be straitforward

andreibarabas avatar Dec 02 '20 15:12 andreibarabas