-
Notifications
You must be signed in to change notification settings - Fork 43
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
onViewableItemsChanged called 2 times #184
Comments
any idea about why this behavior |
facing the same issue here? any idea how to solve it ?
|
Any Solution to this? |
Running on the same issue is there any solution to this, so far this is the best library for faster list thank you :) Although I have a dirty hack that works (seems viewableItems always returns 2 index current + next so it makes sense to get first element) onViewableItemsChanged={(e) => {
const viewableItems = e.viewableItems
if (viewableItems.length > 0 && viewableItems[0].isViewable) {
setActivePostId(viewableItems[0].item.id)
}
}} |
Hello
i love this package its the best really
but there is issue really annoying me
i use this package for videos timeline like tiktok so i have 1 item per window height
the problem is after 6 or 8 elements onViewableItemsChanged start to be called 2 by 2 not 1 by 1 like normal
so the item on the viewport is isViewable = false and the next one is true
The text was updated successfully, but these errors were encountered: