Skip to content

getNode() on Flatlist is deprecated #21

@hirbod

Description

@hirbod

Hi,

I just upgraded to Expo SDK 41 and this packages triggers:

FlatList: Calling getNode() on the ref on an Animated component is no longer necessary. You can now directly use the ref instead. This method will be removed in a future release.

This line triggers the issue:

useImperativeHandle(ref, () => flatListRef.current!.getNode());

Would you be so kind to update this?
It might break for older SDKs and versions though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions