Skip to content

Commit

Permalink
pass testID to TabController.TabBar scrollview
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanshar committed Apr 7, 2020
1 parent a1cdb5c commit fd3f09d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/tabController/TabBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ class TabBar extends PureComponent {
};

render() {
const {height, enableShadow, containerStyle} = this.props;
const {height, enableShadow, containerStyle, testID} = this.props;
const {itemsWidths, scrollEnabled} = this.state;
return (
<View
Expand All @@ -332,6 +332,7 @@ class TabBar extends PureComponent {
onContentSizeChange={this.onContentSizeChange}
onScroll={this.onScroll}
scrollEventThrottle={100}
testID={testID}
>
<View style={[styles.tabBar, height && {height}]}>{this.renderTabBarItems()}</View>
{this.renderSelectedIndicator()}
Expand Down

0 comments on commit fd3f09d

Please sign in to comment.