react-native/React
James Reggio 9733b92f3d Add `onScrollToTop` to ScrollView for iOS (#21204)
Summary:
This PR exposes the `onScrollToTop` event on iOS using the same event-forwarding infrastructure as other ScrollView events. (As such, its `nativeEvent` object reflects the same fields as other ScrollView events.)

Motivation:
----------

If your app is only interested in knowing the position of a ScrollView after a scroll has completed, it can use `onScrollEndDrag` and `onMomentumScrollEnd` to inspect the `contentOffset` after a drag-initiated scroll has finished. (This is much less expensive than observing the `onScroll` event if you only want to know the end position.) However, neither of these `End` events fire if the ScrollView is scrolled to the top by tapping the status bar.

By exposing `onScrollToTop`, it is now possible for an app to cheaply know when such a scroll has completed.
Pull Request resolved: https://github.com/facebook/react-native/pull/21204

Differential Revision: D9943618

Pulled By: hramos

fbshipit-source-id: ac5ee42b7f12d94655ffda617f8f811138da7f6f
2018-09-19 11:17:30 -07:00
..
Base Fix RNTester build 2018-09-17 12:33:01 -07:00
CxxBridge Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
CxxModule Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
CxxUtils Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
DevSupport Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Fabric Fabric: Proper thread synchronization in MainRunLoopEventBeat 2018-09-14 15:21:10 -07:00
Inspector Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Modules Making RCTIsIPhoneX() return true for the R and Max models 2018-09-16 21:46:50 -07:00
Profiler Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
React.xcodeproj Add the new RCTWKWebView* files to build target on iOS (#21031) 2018-09-10 18:17:30 -07:00
UIUtils Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Views Add `onScrollToTop` to ScrollView for iOS (#21204) 2018-09-19 11:17:30 -07:00
third-party.xcconfig Updated the glog library version from 0.3.4 to 0.3.5 (#20811) 2018-08-23 14:17:18 -07:00