React-native-draggable-flatlist: Calling getNode() on the ref of an Animated component is no longer necessary

Created on 5 Nov 2020  路  4Comments  路  Source: computerjazz/react-native-draggable-flatlist

Describe the bug
When using DraggableFlatList react-native shows this warning:

ReactNativeFiberHostComponent: Calling getNode() 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.

From the stack I can see that it comes from:

DraggableFlatList:
[...]node_modules\react-native-draggable-flatlist\lib\index.js:304:9

Platform & Dependencies

  • React Native version: 0.63.2
  • Reanimated version: 2.0.0-alpha.8
  • React Native Gesture Handler version: 1.7.0
  • React Native Draggable FlatList: 2.5.0

Most helpful comment

For anyone getting this warning, you are probably using reanimated v2 instead of v1, which is the actual peer dependency for this library. So to get rid of it use reanimated v1.

All 4 comments

Thanks for opening this issue and for the pull request 馃檹

Do you intend to merge this update?

For anyone getting this warning, you are probably using reanimated v2 instead of v1, which is the actual peer dependency for this library. So to get rid of it use reanimated v1.

Author himself decided to just ignore this error:

LogBox.ignoreLogs([  "ReactNativeFiberHostComponent: Calling getNode() 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.",]);

You may do this by yourself or try to install the latest version if it includes this commit (there is still no version 2.6.2 in expo installer configs)
image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ZeroCool00 picture ZeroCool00  路  7Comments

ymohdriz picture ymohdriz  路  7Comments

ARDcode picture ARDcode  路  9Comments

canpoyrazoglu picture canpoyrazoglu  路  7Comments

dev-sathish picture dev-sathish  路  7Comments