-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fix: 3.0.0-rc.9 , useAnimatedScrollHandler with FlashList not working #3938
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, it fixes the issue 👍 Just update the comment please.
src/createAnimatedComponent.tsx
Outdated
@@ -196,7 +196,7 @@ export default function createAnimatedComponent( | |||
|
|||
if (componentName?.endsWith('FlashList') && this._component) { | |||
// @ts-ignore it's FlashList specific: https://github.com/Shopify/flash-list/blob/218f314e63806b4fe926741ef73f8b9cd6ebc7eb/src/FlashList.tsx#L824 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update the comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I will update shortly
Waiting for a merge |
still not working on React native 0.71.0 |
What exactly is the problem? Which version are you using? I think you confirmed that this PR works for you in #3937 (comment) |
reanimated : 2.14.1 bug on android, RN 0.71.0 |
…#3938) <!-- Thanks for submitting a pull request! We appreciate you spending the time to work on these changes. Please follow the template so that the reviewers can easily understand what the code changes affect. --> ## Summary Fixes #3937. ## Test plan <!-- Provide a minimal but complete code snippet that can be used to test out this change along with instructions how to run it and a description of the expected behavior. --> Co-authored-by: Thanh Tran <thanh@lhts.io>
Actually it works in debug, but on a production build (minified) it doesn't work, the onScroll handler is never called 🥲 |
@NTag I tested the main reanimated branch on Android device in release mode, with FlashList and RefreshControl and it works for me. |
I only test the rc10, it may have been fixed then! Happy to try once the latest commits are in a rc11. |
@NTag you can always try nightly build from our main branch: https://github.com/software-mansion/react-native-reanimated/actions/runs/3986157247 |
…software-mansion#3938) <!-- Thanks for submitting a pull request! We appreciate you spending the time to work on these changes. Please follow the template so that the reviewers can easily understand what the code changes affect. --> ## Summary Fixes software-mansion#3937. ## Test plan <!-- Provide a minimal but complete code snippet that can be used to test out this change along with instructions how to run it and a description of the expected behavior. --> Co-authored-by: Thanh Tran <thanh@lhts.io>
Summary
Fixes #3937.
Test plan