react-native-collapsible
react-native-collapsible copied to clipboard
Calling `getNode()` on the ref of an Animated component is no longer necessary
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.
This should be corrected by #346 .. Any ETA?
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.
Still continue in last version.
+1 this really needs to be merged and corrected.
+1 Waiting for PR to be merged
+1 did the maintainer die of corona virus or something?
Did someone find a solution for this?
Edit:
In file https://github.com/oblador/react-native-collapsible/blob/master/Collapsible.js on line 88: removing the getNode() function from the chain fixes the issue.
@yesterday24 I used patch-package to apply @marcorm's fix #346 to my project while we wait for the fix to be merged into the react-native-collapsible
repo
Edit:
@yesterday24 for your use case, if you are locked into RN 0.62 or higher, you could create a patch that does what you mentioned in your comment and ignore the backwards compatibility part of marcorm's fix if you don't need backwards compatibility
Edit 2:
This issue is fixed now in version 1.5.3
, so the patch workaround is no longer necessary once you upgrade: https://github.com/oblador/react-native-collapsible/pull/349
same problem here
Why can't I install version 1.5.3?