Skip to content

Commit

Permalink
Merge pull request ptomasroos#923 from Alibrate/fix-underline
Browse files Browse the repository at this point in the history
use __getValue() instead of ._value
  • Loading branch information
Tomas Roos committed Oct 25, 2018
2 parents 085996a + e2ba6a5 commit 089d020
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 089d020

Please sign in to comment.