react-native/Libraries
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
..
ART Fixed ART background color 2016-01-08 15:42:32 -08:00
ActionSheetIOS ActionSheetIOS support for presentation from modal view controller 2016-01-12 03:14:35 -08:00
AdSupport
Animated Deploy v0.21.0 2016-02-01 17:13:35 -08:00
AppRegistry Decouple Module System from Native Calls 2015-12-08 16:03:37 -08:00
AppState Tweak docs before releasing 0.19 2016-01-30 17:11:28 -08:00
AppStateIOS Made Map & Set polyfills available globally 2016-01-20 08:27:38 -08:00
BatchedBridge Implement Android's dispatchViewManagerCommand interface on iOS 2016-01-06 05:58:37 -08:00
CameraRoll Tweak docs before releasing 0.19 2016-01-30 17:11:28 -08:00
Components Replace `ScrollView.scrollTo()` API with something less ambiguous. 2016-02-03 04:00:40 -08:00
CustomComponents add animated param in ListView#scrollTo 2016-02-01 14:53:11 -08:00
DebugComponentHierarchy Decouple Module System from Native Calls 2015-12-08 16:03:37 -08:00
Device Decouple Module System from Native Calls 2015-12-08 16:03:37 -08:00
Devtools
Fetch
Geolocation See issue #4886 2016-01-12 03:11:31 -08:00
Image Fix CPU spike: should use UIGraphicsEndImageContext rather than UIGraphicsGetCurrentContext 2016-01-28 14:25:35 -08:00
Inspector Fix warnings generated by Elements Inspector 2016-01-25 18:43:47 -08:00
Interaction Updates for haste2 inside of jest 2016-01-08 06:52:29 -08:00
JavaScriptAppEngine Fix SourceMap loading on Android 2016-02-02 12:21:34 -08:00
LayoutAnimation
Linking Add cross-platform Linking module 2016-01-26 14:34:31 -08:00
LinkingIOS Fix import of LinkingIOS on Android 2016-02-02 09:25:36 -08:00
Modal Improve Modal docs describing iOS only support 2015-12-05 18:48:28 -08:00
NativeApp Decouple Module System from Native Calls 2015-12-08 16:03:37 -08:00
Network bind this in onreadystatechange call 2016-01-18 08:55:35 -08:00
Picker Added support for styling the PickerIOS 2015-12-08 07:48:26 -08:00
Portal
PullToRefresh Allow customized refreshControl in ScrollView for Android 2016-02-02 07:12:32 -08:00
PushNotificationIOS Made Map & Set polyfills available globally 2016-01-20 08:27:38 -08:00
QuickPerformanceLogger
RCTTest Replace direct access of NativeModules.UIManager with require('UIManager') 2016-01-30 07:36:34 -08:00
RKBackendNode
ReactIOS Allow customized refreshControl in ScrollView for Android 2016-02-02 07:12:32 -08:00
ReactNative Deploy v0.20.1 2015-12-18 17:04:29 -08:00
Sample
Settings Replaced RegExp method parser with recursive descent 2015-12-10 10:12:29 -08:00
Storage Batch AsyncStorage.multiGet calls 2015-12-03 09:10:29 -08:00
StyleSheet ColorPropTypes support for isRequired and more precise description 2016-02-01 12:47:32 -08:00
Text Add iOS tintColor prop to TextInput 2016-02-03 00:22:34 -08:00
Utilities Hot Loading Indicators 2016-02-01 12:42:33 -08:00
Vibration
WebSocket iOS websocket: include cookies with request 2016-02-01 14:19:32 -08:00
react-native Add a cross-platform Picker 2016-01-29 03:59:54 -08:00
vendor Reimplement color processing 2016-01-29 09:13:32 -08:00
Promise.js Add support for promise rejection tracking 2016-01-07 12:02:56 -08:00