Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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. #277

Open
Preeternal opened this issue Apr 16, 2021 · 19 comments

Comments

@Preeternal
Copy link

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.

@slavagoreev
Copy link

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

#244 (comment)

@hraschan
Copy link

hraschan commented May 7, 2021

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

@freezen82
Copy link

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

@dkoodev
Copy link

dkoodev commented May 26, 2021

Will this package support using reanimated v2 in the future?

@alburdette619
Copy link

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

@NxsHbb
Copy link

NxsHbb commented Jul 7, 2021

@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....

@Makatun
Copy link

Makatun commented Jul 14, 2021

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

@salamisodikiolawale
Copy link

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

@slavagoreev
Copy link

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
Copy link

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

@salamisodikiolawale
Copy link

salamisodikiolawale commented Jul 15, 2021

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

@slavagoreev
Copy link

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

@salamisodikiolawale
Copy link

salamisodikiolawale commented Jul 15, 2021

#277 (comment)

Yessss, Thank you so much, it works.

@jamesxabregas
Copy link

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...

@itsramiel
Copy link

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

@maxfahl
Copy link

maxfahl commented Oct 28, 2021

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.

@itsramiel
Copy link

I believe it is being worked on. I install the beta version using "npm install react-native-draggable-flatlist@3.0.0-beta.11". The error is fixed and seem to be working fine, but i guess it is still being tested

@maxfahl
Copy link

maxfahl commented Oct 29, 2021

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.

@NxsHbb
Copy link

NxsHbb commented Jan 3, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests