Skip to content

Commit

Permalink
yeswanth#47 Added prop tabItemContainerStyle
Browse files Browse the repository at this point in the history
tabItemContainerStyle prop enables passing container level style prop to customise the header tabs' touchableOpacity element's style.
  • Loading branch information
yashgada committed Feb 3, 2023
1 parent f464db8 commit 52ef4cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/DynamicTabView.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ class DynamicTabView extends React.Component {
headerActiveTextStyle={this.props.headerActiveTextStyle}
headerUnderlayColor={this.props.headerUnderlayColor}
highlightStyle={this.props.highlightStyle}
tabItemContainerStyle={this.props.tabItemContainerStyle}
/>
</View>
);
Expand Down
3 changes: 2 additions & 1 deletion src/DynamicTabViewScrollHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ class DynamicTabViewScrollHeader extends React.Component {
onPress={this._onPressHeader.bind(this, index)}
style={[
this.defaultStyle.tabItemContainer,
{ backgroundColor: this.props.headerBackgroundColor }
{ backgroundColor: this.props.headerBackgroundColor },
this.props.tabItemContainerStyle,
]}
underlayColor={"#00000033"}
>
Expand Down

0 comments on commit 52ef4cf

Please sign in to comment.