Skip to content

Commit

Permalink
Merge branch 'master' of github.com:GeekyAnts/NativeBase
Browse files Browse the repository at this point in the history
  • Loading branch information
shivrajkumar committed May 30, 2017
2 parents 9747848 + 0ea2f5d commit 8932b06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/basic/Tabs/ScrollableTabBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ const ScrollableTabBar = React.createClass({

componentWillReceiveProps(nextProps) {
// If the tabs change, force the width of the tabs container to be recalculated
if (JSON.stringify(this.props.tabs) !== JSON.stringify(nextProps.tabs) && this.state._containerWidth) {
if (!_.isEqual(this.props.tabs, nextProps.tabs) && this.state._containerWidth) {
this.setState({ _containerWidth: null, });
}
},
Expand Down

0 comments on commit 8932b06

Please sign in to comment.