react-native-draggable-flatlist icon indicating copy to clipboard operation
react-native-draggable-flatlist copied to clipboard

containerRef.getNode() is not a function

Open realtril opened this issue 4 years ago • 4 comments

Describe the bug When opening a view with a draggable flatlist, I'm stucking with the issue of "ContainerRef.getNode() is not a function."

Screen Shot 2022-01-10 at 12 19 41 PM

As you can see, the source of the issue is a 422 line in the index.js file of the library. BUT! This is how index.js looks like :

Screen Shot 2022-01-10 at 12 37 02 PM
  • react-native-draggable-flatlist version:
  • Platform: ANDROID 12
  • React Native or Expo version: expo 43/ react-native 0.66.2
  • Reanimated version: 2.3.1
  • React Native Gesture Handler version: 2.1.0

realtril avatar Jan 10 '22 10:01 realtril

What version of react-native-draggable-flatlist are you using? as of v3.0.0 we no longer call getNode on the container ref

computerjazz avatar Jan 11 '22 16:01 computerjazz

What version of react-native-draggable-flatlist are you using? as of v3.0.0 we no longer call getNode on the container ref

I'm also getting same error while try use scrollTo function of scroll view. How can I solve it ?

fatihkayan20 avatar Jan 13 '22 10:01 fatihkayan20

Using last current version 3.1.1 fixed the crash with:

    react: 17.0.2 => 17.0.2 
    react-native: 0.67.4 => 0.67.4 

fcaldarelli avatar Apr 29 '22 15:04 fcaldarelli

Using last current version 3.1.1 fixed the crash with:

    react: 17.0.2 => 17.0.2 
    react-native: 0.67.4 => 0.67.4 

This worked for me. The error has something to do with a react-native package update I did recently so updating this package seemed to solve it

KrisLau avatar May 04 '22 14:05 KrisLau