Skip to content

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

Open
@shivanshrajpoot

Description

@shivanshrajpoot

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions