-
Notifications
You must be signed in to change notification settings - Fork 67
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
Error: ... You can now directly use the ref instead. This method will be removed in a future release., FlatList, getNode() #72
Comments
same here
|
Go To: node_modules/react-native-scroll-bottom-sheet/src/index.tsx find this line: remove getNode(); |
This works for me, add |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current Behavior
Getting the following error when scrolling down + hide on Android:
%s: Calling %s 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., FlatList, getNode()
index.tsx line 781. Removed getNode() and the warning is gone.
Before:
// @ts-ignore
const node = this.props.innerRef.current?.getNode();
After:
// @ts-ignore
const node = this.props.innerRef.current;
How to reproduce
Just scroll down from inside the FlatList very fast and you get the error.
Your Environment
The text was updated successfully, but these errors were encountered: