diff --git a/ScrollableTabBar.js b/ScrollableTabBar.js index 18d49c48..0a491608 100644 --- a/ScrollableTabBar.js +++ b/ScrollableTabBar.js @@ -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() { @@ -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(), }); }, });