react-native/Libraries/Components
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
..
AccessibilityInfo Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
ActivityIndicator Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
AppleTV Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
CheckBox Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Clipboard Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
DatePicker Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
DatePickerAndroid Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
DrawerAndroid Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Keyboard Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
MaskedView Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Picker Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
ProgressBarAndroid Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
ProgressViewIOS Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RefreshControl Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
SafeAreaView SafeAreaView: A new prop `emulateUnlessSupported` that turns off the custom implementation of `safeAreaInsets` insets 2018-09-11 21:19:18 -07:00
ScrollView Add `onScrollToTop` to ScrollView for iOS (#21204) 2018-09-19 11:17:30 -07:00
SegmentedControlIOS Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Slider Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
StatusBar Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Switch Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
TabBarIOS Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
TextInput Fix warning in InputAccessoryView (#21174) 2018-09-18 18:31:51 -07:00
TimePickerAndroid Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
ToastAndroid Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
ToolbarAndroid Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Touchable Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
UnimplementedViews Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
View Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
ViewPager Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
WebView Expose AllowFileAccess property in WebView 2018-09-12 11:49:20 -07:00
Button.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
ScrollResponder.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
StaticContainer.react.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
StaticRenderer.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Subscribable.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00