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

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.

Open Preeternal opened this issue 3 years ago • 19 comments

Describe the bug I got an 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.

Preeternal avatar Apr 16 '21 15:04 Preeternal

@Preeternal please, see this response. Reanimated should be of v1. yarn add react-native-reanimated@1

https://github.com/computerjazz/react-native-draggable-flatlist/issues/244#issuecomment-777841894

slavagoreev avatar Apr 22 '21 11:04 slavagoreev

Is their a way to use Reanimated version 2 without the above mentioned warning?

hraschan avatar May 07 '21 07:05 hraschan

i have same issue with expo sdk 41. it updated Reanimated v2 and not downgradable.

freezen82 avatar May 13 '21 22:05 freezen82

Will this package support using reanimated v2 in the future?

dkoodev avatar May 26 '21 07:05 dkoodev

Also interested in using with reanimated v2, we are using it and hermes on both platforms.

alburdette619 avatar Jul 06 '21 16:07 alburdette619

@Preeternal please, see this response. Reanimated should be of v1. yarn add react-native-reanimated@1

#244 (comment)

I am using expo SDK 42 and this solved my problem. Thanks....

NxsHbb avatar Jul 07 '21 03:07 NxsHbb

I am using expo SDK 42 too but still see the problem

Makatun avatar Jul 14 '21 04:07 Makatun

Hello, I have the same and my project works with expo, I tried the different methods but I had errors 500. and so I came back to version 2 of reanimed, how can I set the warning with expo. it is urgent please

salamisodikiolawale avatar Jul 15 '21 11:07 salamisodikiolawale

Hello, I have the same and my project works with expo, I tried the different methods but I had errors 500. and so I came back to version 2 of reanimed, how can I set the warning with expo. it is urgent please

The only way how you may handle this is to ignore this error.

// App.tsx
import { LogBox } from 'react-native';

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.',
]);

slavagoreev avatar Jul 15 '21 11:07 slavagoreev

Exactly the same fix were added to the library in https://github.com/computerjazz/react-native-draggable-flatlist/pull/278/files

slavagoreev avatar Jul 15 '21 11:07 slavagoreev

How do I go about it? i begining to react-native, can you give me directive for solve problems.

salamisodikiolawale avatar Jul 15 '21 11:07 salamisodikiolawale

How do I go about it? i begining to react-native, can you give me directive for solve problems.

  1. Use reanimated v2
  2. Add the code I provided above in your App.jsx
  3. It will suspend the warning and the rest will work just fine

slavagoreev avatar Jul 15 '21 11:07 slavagoreev

https://github.com/computerjazz/react-native-draggable-flatlist/issues/277#issuecomment-880616826

Yessss, Thank you so much, it works.

salamisodikiolawale avatar Jul 15 '21 13:07 salamisodikiolawale

I hope everyone here realizes that hiding a deprecation warning isn't a real solution to this problem, it's just a convenient way to forget it exists until one day React Native does deprecate it and this library is broken...

jamesxabregas avatar Sep 21 '21 18:09 jamesxabregas

is there a solution for this, or will this package get updated? It is a really useful one for react native developers

itsramiel avatar Oct 26 '21 16:10 itsramiel

I'm really hoping for some issues to get resolved. This is an extremely helpful project, unfortunately it's open source, so we can't count on frequent updates.

maxfahl avatar Oct 28 '21 14:10 maxfahl

I believe it is being worked on. I install the beta version using "npm install [email protected]". The error is fixed and seem to be working fine, but i guess it is still being tested

itsramiel avatar Oct 29 '21 14:10 itsramiel

That's great news. Did not check for other branches. Seems there has been some activity lately, awesome!

I'm really thankful for the work you're doing here @computerjazz, my application would be kind of a mess without this package.

maxfahl avatar Oct 29 '21 15:10 maxfahl

Exactly the same fix were added to the library in https://github.com/computerjazz/react-native-draggable-flatlist/pull/278/files

Thanks. updating react-native-draggable-flatlist solved my issue.

NxsHbb avatar Jan 03 '22 06:01 NxsHbb