Skip to content

Commit

Permalink
Merge pull request #923 from Alibrate/fix-underline
Browse files Browse the repository at this point in the history
use __getValue() instead of ._value
  • Loading branch information
ptomasroos authored Oct 25, 2018
2 parents 67e4f3b + 0be217e commit bb8665b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ScrollableTabBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ const ScrollableTabBar = createReactClass({
measureTab(page, event) {
const { x, width, height, } = event.nativeEvent.layout;
this._tabsMeasurements[page] = {left: x, right: x + width, width, height, };
this.updateView({value: this.props.scrollValue._value, });
this.updateView({value: this.props.scrollValue.__getValue(), });
},

render() {
Expand Down Expand Up @@ -207,12 +207,12 @@ const ScrollableTabBar = createReactClass({
width = WINDOW_WIDTH;
}
this.setState({ _containerWidth: width, });
this.updateView({value: this.props.scrollValue._value, });
this.updateView({value: this.props.scrollValue.__getValue(), });
},

onContainerLayout(e) {
this._containerMeasurements = e.nativeEvent.layout;
this.updateView({value: this.props.scrollValue._value, });
this.updateView({value: this.props.scrollValue.__getValue(), });
},
});

Expand Down

0 comments on commit bb8665b

Please sign in to comment.