Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shivanshrajpoot opened this issue Dec 31, 2020 · 1 comment

Comments

@shivanshrajpoot
Copy link

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.

@jeffreyvanhees
Copy link

Fixed in #150, but it looks like the maintainer isn't checking it's pull requests anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants