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
Environment
React Native info output:
FlashList version: 2.1.0
Additional context
Checklist
Description
We are currently migrating from v1 to v2, and we found out that the
onViewableItemsChangedis triggered on mount if we provideinitialScrollIndexand does not respect theviewabilityConfig.waitForInteraction. This was not the case with v1 orFlatListCurrent behavior
onViewableItemsChangedis triggered on mount if we provideinitialScrollIndexand does not respect theviewabilityConfig.waitForInteractionExpected behavior
onViewableItemsChangedshould not be triggered on mount if we provideinitialScrollIndexand theviewabilityConfig.waitForInteraction=trueReproduction
Expo Snack or minimal reproduction link:
Platform
Environment
React Native info output:
FlashList version: 2.1.0
Additional context
Checklist