I have a Text with long text inside a ScrollView and I want to detect when the user has scrolled to the end of the text so I can enable a button.>
Text
ScrollView
For Horizontal ScrollView (e.g. Carousels) replace isCloseToBottom function with isCloseToRight
isCloseToBottom
isCloseToRight
isCloseToRight = ({ layoutMeasurement, contentOffset, contentSize }) => { const paddingToRight = 20; return layoutMeasurement.width + contentOffset.x >= contentSize.width - paddingToRight; };