containerRef.getNode() is not a function
Describe the bug When opening a view with a draggable flatlist, I'm stucking with the issue of "ContainerRef.getNode() is not a function."
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 :
- 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
What version of react-native-draggable-flatlist are you using? as of v3.0.0 we no longer call getNode on the container ref
What version of
react-native-draggable-flatlistare you using? as of v3.0.0 we no longer callgetNodeon the container ref
I'm also getting same error while try use scrollTo function of scroll view. How can I solve it ?
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
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