-
Notifications
You must be signed in to change notification settings - Fork 340
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
We are currently migrating from v1 to v2, and we found out that the onViewableItemsChanged
is triggered on mount if we provide initialScrollIndex
and does not respect the viewabilityConfig.waitForInteraction
. This was not the case with v1 or FlatList
Current behavior
onViewableItemsChanged
is triggered on mount if we provide initialScrollIndex
and does not respect the viewabilityConfig.waitForInteraction
Expected behavior
onViewableItemsChanged
should not be triggered on mount if we provide initialScrollIndex
and the viewabilityConfig.waitForInteraction=true
Reproduction
Expo Snack or minimal reproduction link:
Platform
- iOS
- Android
- Web (if applicable)
Environment
React Native info output:
Paste output here
FlashList version: 2.1.0
Additional context
Checklist
- I've searched existing issues and couldn't find a duplicate
- [] I've provided a minimal reproduction (Expo Snack preferred)
- I'm using the latest version of @shopify/flash-list
- I've included all required information above
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working