Closed hirbod closed 3 months ago
Hey! 👋
It looks like you've omitted a few important sections from the issue template.
Please complete Snack or minimal code example section.
Just confirmed that the same issue happens on Android
I removed useAnimatedScrollHandler
and used all onboard scrollview events and it works flawlessly.
(onScroll, onScrollBeginDrag, onScrollEndDrag=
hi @Hirbod – thanks for reporting. Apparently, I'm not sure if I fully understand the issue.
What you mean by "windowSize elements have passed" ? There is a number of small code snippets in the description but what I think would clarify the issue for me if we just get a complete example or component that we could try.
Description
I have an infinite vertical FlatList with paging enabled. It's something like TikTok / Instagram Reels. I spent a ton of time to optimize the FlatList and managed to swipe through 25.000 videos without an crash/framedrop.
My
renderItem
method is very slim and just contains a horizontal scrollview with 2 views (paging enabled as well) The firstView
shows my video and the second horizontal view shows information about the video. In order to pause my video and to hide/show my bottom tab bar, I am using an Animated Scrollview withuseAnimatedScrollHandler
Everything works perfectly fine, but as soon as FlatList's value of
windowSize
was swiped (in my case, 9), the useAnimatedScrollHandler is not triggering anymore.Expected behavior
I should be able to create as many ScrollView with as many onScroll Event Listeners inside a FlatList as I want to.
Actual behavior & steps to reproduce
As soon as
windowSize
elements have passed, onScroll won't be triggered anymore.Snack or minimal code example
Package versions
Affected platforms