react-native/Libraries/Components
Nick Lockwood 6941c4e027 Replace `ScrollView.scrollTo()` API with something less ambiguous.
Summary:
public
The current `ScrollView.scrollTo()` API is confusing due to the `(y, x)` parameter order, and the boolean `animated` argument. E.g.

    ScrollView.scrollTo(5, 0, true) // what do these arguments mean?

This diff replaces the API with a configuration object, so the arguments are all explicit:

    ScrollView.scrollTo({x: 0, y: 5, animated: true}) // much better

The `scrollTo()` method checks the argument types, and provides backwards compatibility with the old argument format for now. Using the old API will generate a warning, and this will eventually be upgraded to an error.

Reviewed By: davidaurelio

Differential Revision: D2892287

fb-gh-sync-id: cec4d504242391267c6e863816b6180ced7a7d5e
2016-02-03 04:00:40 -08:00
..
ActivityIndicatorIOS Compose propTypes from View.propTypes where appropriate. 2015-11-18 13:06:27 -08:00
Clipboard Open source Android date and time pickers 2016-01-26 10:31:17 -08:00
DatePicker Replace direct access of NativeModules.UIManager with require('UIManager') 2016-01-30 07:36:34 -08:00
DatePickerAndroid Open source Android date and time pickers 2016-01-26 10:31:17 -08:00
DrawerAndroid Bugfix - Typos 2015-12-15 09:09:32 -08:00
Intent Add cross-platform Linking module 2016-01-26 14:34:31 -08:00
MapView Add MapView annotation callback when it gets / lost the focus 2016-01-29 06:26:30 -08:00
Navigation Deploy v0.21.0 2016-02-01 17:13:35 -08:00
Picker Tweak docs before releasing 0.19 2016-01-30 17:11:28 -08:00
ProgressBarAndroid ProgressBarAndroid: default value for styleAttr 2016-01-07 12:02:37 -08:00
ProgressViewIOS Compose propTypes from View.propTypes where appropriate. 2015-11-18 13:06:27 -08:00
RefreshControl Allow customized refreshControl in ScrollView for Android 2016-02-02 07:12:32 -08:00
ScrollView Replace `ScrollView.scrollTo()` API with something less ambiguous. 2016-02-03 04:00:40 -08:00
SegmentedControlIOS Compose propTypes from View.propTypes where appropriate. 2015-11-18 13:06:27 -08:00
SliderIOS Add option for both min/max track image. 2015-12-21 10:30:39 -08:00
StatusBar Release React Native for Android 2015-09-14 18:13:39 +01:00
Switch Remove fixed size for Android. Fixes #3785 2016-01-06 07:42:28 -08:00
SwitchAndroid Bugfix - Typos 2015-12-15 09:09:32 -08:00
SwitchIOS Added ColorPropType 2015-12-23 10:08:38 -08:00
TabBarIOS Added ColorPropType 2015-12-23 10:08:38 -08:00
TextInput Add iOS tintColor prop to TextInput 2016-02-03 00:22:34 -08:00
TimePickerAndroid Open source Android date and time pickers 2016-01-26 10:31:17 -08:00
ToastAndroid Open source Android date and time pickers 2016-01-26 10:31:17 -08:00
ToolbarAndroid Added ColorPropType 2015-12-23 10:08:38 -08:00
Touchable Improved 3D touch implementation, and added example 2016-01-27 09:05:36 -08:00
UnimplementedViews Quick fix to require cycle in UnimplementedView 2015-11-23 14:14:32 -08:00
View Improved 3D touch implementation, and added example 2016-01-27 09:05:36 -08:00
ViewPager Add onPageScrollStateChanged for ViewPagerAndroid 2016-01-29 01:17:35 -08:00
WebView Ported `source` prop over to iOS WebView 2016-02-01 18:01:35 -08:00
ScrollResponder.js Replace `ScrollView.scrollTo()` API with something less ambiguous. 2016-02-03 04:00:40 -08:00
StaticContainer.js Move stuff out of vendor/react_contrib/ 2015-10-12 11:18:30 -07:00
StaticRenderer.js [Haste] @provides -> @providesModule StaticRenderer 2015-05-14 08:42:13 -08:00
Subscribable.js [ReactNative] clean lint for Libraries/Components 2015-05-18 15:54:07 -08:00