title: Detect scroll end in React Native ScrollView, snap to page
body: <p>React Native <a href="https://facebook.github.io/react-native/docs/scrollview.html" rel="noreferrer">ScrollView</a> has a prop <a href="https://facebook.github.io/react-native/docs/scrollview.html#pagingenabled" rel="noreferrer">pagingEnabled </a>. However, it assumes that the width of each page (or child component) in the ScrollView is equal to the width of the ScrollView.</p>
  
  <p>How can we mend this to make it work correctly for pages that are smaller than the ScrollView?</p>
  
  <p><strong>Is it possible to detect when the user stops scrolling?</strong> Then we can easily write our own code to snap to the right page.</p>
  
  <p>Edit: There are a few other ways to mend this by using props that are only available on iOS, so this is particularly a problem on Android.</p>