From 288706852c6ed2053e9be4f31539846ff66ecd25 Mon Sep 17 00:00:00 2001 From: RajeshCentrica Date: Fri, 24 Sep 2021 14:57:00 +0100 Subject: [PATCH] scrollview crash fix scrollview crash fix --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } } }