onViewableItemsChanged won’t update the viewableItem even though the currently visible item has changed
I am trying to build a workout tracking app. In it, I am displaying the user’s exercises in a horizontal flatlist. I want the page indicator to display the currently viewable page. To do so, I am trying to use the ‘onViewableItemsChanged‘ in the FlatList but for some reason, it won’t update the currently viewable item.