Skip to content

TypeError: Cannot read property 'getNode' of null #60

@Grohden

Description

@Grohden

Hey, great library! I've started to use it in our app forms it worked well until I decided to lift somethings from our forms up to where the scroll view gets rendered and started to get this:

(NOBRIDGE) ERROR  Warning: TypeError: Cannot read property 'getNode' of null

This error is located at:
    in ContainerBase
    in Unknown

From what I investigated this is mainly caused by https://github.com/slorber/react-native-scroll-into-view/blob/master/src/hoc.tsx#L52 receiving a null value from react

This all would make some sense IF I were to be unmounting the scroll view, but thats not the case, I've added a componentWillUnmount locally here to that HOC and the component doesn't get unmounted

I've tried changing my current view (KeyboardAwareScrollView from react-native-keyboard-controller) to just a RN ScrollView and I still get the same results

I'll see if I can investigate further and register my findings here

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