onViewableItemsChanged does not seem to work when there is a state change in the app. Is this correct?
Seems like it wouldn\'t be very useful if this
this works for me, is there any way to pass an additional argument to onViewRef? Like in the below code how can i pass type argument to onViewRef. Code:
function getScrollItems(items, isPendingList, type) {
return (
index.toString()}
showsHorizontalScrollIndicator={false}
renderItem={({item, index}) => renderScrollItem(item, index, isPendingList, type)}
viewabilityConfig={viewConfigRef.current}
onViewableItemsChanged={onViewRef.current}
/>
)
}