From 767fa3c24a011377d2a2e93a6fc970610da3d26f Mon Sep 17 00:00:00 2001 From: Roland Lee Date: Fri, 22 May 2020 11:47:41 +0800 Subject: [PATCH] Fix getScrollResponder() function which is not working in react-native version 0.62.2. --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 8787b6f..7994854 100644 --- a/src/index.js +++ b/src/index.js @@ -157,7 +157,7 @@ class ParallaxScrollView extends Component { * Expose `ScrollView` API so this component is composable with any component that expects a `ScrollView`. */ getScrollResponder() { - return this.refs[SCROLLVIEW_REF]._component.getScrollResponder() + return this.refs[SCROLLVIEW_REF].getScrollResponder() } getScrollableNode() { return this.getScrollResponder().getScrollableNode()