diff --git a/index.js b/index.js index 82e53c54..36213dd8 100644 --- a/index.js +++ b/index.js @@ -137,14 +137,14 @@ const ScrollableTabView = createReactClass({ if (Platform.OS === 'ios') { const offset = pageNumber * this.state.containerWidth; if (this.scrollView) { - this.scrollView.getNode().scrollTo({x: offset, y: 0, animated: !this.props.scrollWithoutAnimation, }); + this.scrollView.scrollTo({x: offset, y: 0, animated: !this.props.scrollWithoutAnimation, }); } } else { if (this.scrollView) { if (this.props.scrollWithoutAnimation) { - this.scrollView.getNode().setPageWithoutAnimation(pageNumber); + this.scrollView.setPageWithoutAnimation(pageNumber); } else { - this.scrollView.getNode().setPage(pageNumber); + this.scrollView.setPage(pageNumber); } } }