In javascript in web I would do something like this to determine if user is at the top of the scrollable page/document:
$(document).scroll(function() {
if($(window).scrollTop() === 0) {
//do stuff
}
});
Is there something similar in React Native that could help me to determine if user is at the top of the screen or not?