-
Notifications
You must be signed in to change notification settings - Fork 429
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
[@next] useNativeDriver: true
in onPageScroll
works with PagerView
, but not LazyPagerView
#576
Comments
I've noticed that removing the wrapper around Is there any reason this wrapper was added? I could make a PR removing it. |
@alpha0010 Could you help me with above question ? |
The wrapper dramatically reduced calls to the main |
@alpha0010 then I believe declaring |
Unfortunately, it has been too long since I worked on this for me to recall if I: did not test that, tested but it did not work, or maybe just implemented it wrong while testing (or maybe something else). |
Description
When using
Animated.event
inonPageScroll
ofLazyPagerView
and settinguseNativeDriver
totrue
, the animated values ofposition
andoffset
do not get updated at all.The same setup works as intended with the regular
PagerView
.This leads to poor performance of animations based on the page position.
Reproducible Demo
Here's a code snippet which uses
PagerView
and where the animated values are properly updated:Here's the same setup which uses
LazyPagerView
and where the animated values are always at 0:Changing
useNativeDriver: true
touseNativeDriver: false
restores the functionality, but degrades performance.The text was updated successfully, but these errors were encountered: