react-native-parallax-scroll-view icon indicating copy to clipboard operation
react-native-parallax-scroll-view copied to clipboard

TypeError: undefined is not an object (evaluating 'this.refs[SCROLLVIEW_REF]._component.getScrollResponder')

Open shivanshrajpoot opened this issue 4 years ago • 1 comments

Env: RN : 0.63^

Problem: When trying to use scrollTo function using ref, throws following error TypeError: undefined is not an object (evaluating 'this.refs[SCROLLVIEW_REF]._component.getScrollResponder')

Reason: getScrollResponder() { return this.refs[SCROLLVIEW_REF]._component.getScrollResponder() } Above function uses _component to access the ref which is not there, hence throwing the error.

shivanshrajpoot avatar Dec 31 '20 20:12 shivanshrajpoot

Fixed in https://github.com/i6mi6/react-native-parallax-scroll-view/pull/150, but it looks like the maintainer isn't checking it's pull requests anymore.

jeffreyvanhees avatar May 28 '21 20:05 jeffreyvanhees