Skip to content

Error: ... You can now directly use the ref instead. This method will be removed in a future release., FlatList, getNode() #72

@asalha

Description

@asalha

Current Behavior

Getting the following error when scrolling down + hide on Android:
%s: Calling %s on the ref of an Animated component is no longer necessary. You can now directly use the ref instead. This method will be removed in a future release., FlatList, getNode()

index.tsx line 781. Removed getNode() and the warning is gone.

Before:
// @ts-ignore
const node = this.props.innerRef.current?.getNode();

After:
// @ts-ignore
const node = this.props.innerRef.current;

How to reproduce

Just scroll down from inside the FlatList very fast and you get the error.

Your Environment

version
Platform (Android, iOS or both)
react-native-scroll-bottom-sheet
react-native
react-native-gesture-handler
react-native-reanimated

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