From 2a2745eea1764b6df9c3299959bc6de6696d5672 Mon Sep 17 00:00:00 2001 From: Mukesh Suthar Date: Sat, 8 Aug 2020 00:41:03 +0530 Subject: [PATCH] Update ParallaxSwiper.js fixed scrollTo issue by replace "this.animatedScrollView._component.scrollTo" with "this.animatedScrollView.getNode().scrollTo" --- src/ParallaxSwiper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ParallaxSwiper.js b/src/ParallaxSwiper.js index 4b11e36..3c29875 100644 --- a/src/ParallaxSwiper.js +++ b/src/ParallaxSwiper.js @@ -55,7 +55,7 @@ class ParallaxSwiper extends Component { this.animatedScrollViewHasScrolled = true; } - this.animatedScrollView._component.scrollTo({ + this.animatedScrollView.getNode().scrollTo({ x: vertical ? 0 : scrollOffset, y: vertical ? scrollOffset : 0, animated,