I have a horizontal flat list where each item is width:300 All I am trying to do is to get index of currently visible item.
width:300
this.handleScroll = (event) => { let yOffset = event.nativeEvent.contentOffset.y let contentHeight = event.nativeEvent.contentSize.height let value = yOffset / contentHeight }
Get the round-off value to calculate the page-number/index.