react-native/Libraries/Components
rxb dcf245a9a2 Definable distance pagination for ScrollView
Summary: This is an enhancement for ScrollView that adds the ability to paginate based on a width other than the width of the ScrollView itself. This is a fairly common pattern used on apps like Facebook, App Store, and Twitter to scroll through a horizontal set of cards or icons:

![img_8726 2](https://cloud.githubusercontent.com/assets/451050/8017899/39f9f47c-0bd2-11e5-9c1d-889452f20cf7.PNG) ![img_8727 2](https://cloud.githubusercontent.com/assets/451050/8017898/39f962dc-0bd2-11e5-98b4-461ac0f7f21b.PNG)  ![img_8728 2](https://cloud.githubusercontent.com/assets/451050/8017900/39fd91a4-0bd2-11e5-8786-4cf0316295a0.PNG)

After trying to accomplish this only with JS, it appears that attempting to take over an in-progress native scroll animation with JS is always going to result in some amount of jankiness and jumping.

This pull request uses `scrollViewWillEndDragging` in RCTScrollView.m to adjust `targetContentOffset` based on two new optional props added to ScrollView. `snapToInterval` sets the multiple that the
Closes https://github.com/facebook/react-native/pull/1532

Reviewed By: @​svcscm, @​trunkagent

Differential Revision: D2443701

Pulled By: @vjeux
2015-09-23 11:47:25 -07:00
..
ActivityIndicatorIOS Release React Native for Android 2015-09-14 18:13:39 +01:00
DatePicker Release React Native for Android 2015-09-14 18:13:39 +01:00
DrawerAndroid Fix typo on example code 2015-09-18 10:32:32 -07:00
MapView fix minor grammar and typo errors in comments 2015-09-22 14:41:28 -07:00
Navigation Release React Native for Android 2015-09-14 18:13:39 +01:00
Navigator Release React Native for Android 2015-09-14 18:13:39 +01:00
ProgressBarAndroid Release React Native for Android 2015-09-14 18:13:39 +01:00
ProgressViewIOS [ReactNative] cleanup native components 2015-07-24 18:54:35 -08:00
ScrollView Definable distance pagination for ScrollView 2015-09-23 11:47:25 -07:00
SegmentedControlIOS [ReactNative] cleanup native components 2015-07-24 18:54:35 -08:00
SliderIOS Release React Native for Android 2015-09-14 18:13:39 +01:00
StatusBar Release React Native for Android 2015-09-14 18:13:39 +01:00
SwitchAndroid Fix crash on RC while toggling object status. 2015-09-17 17:20:51 -07:00
SwitchIOS Fix crash on RC while toggling object status. 2015-09-16 15:35:35 -07:00
TabBarIOS [ReactNative] Temporarily disable flow in TabBarItemIOS 2015-08-25 07:16:35 -08:00
TextInput Move color processing to JS 2015-09-17 17:20:45 -07:00
ToastAndroid Release React Native for Android 2015-09-14 18:13:39 +01:00
ToolbarAndroid Move color processing to JS 2015-09-17 17:20:45 -07:00
Touchable Updated TouchableHighlight docs 2015-09-23 11:25:34 -07:00
UnimplementedViews
View [RN][Accessibility] typo in onAccessibilityTap 2015-09-08 10:40:28 -08:00
WebView Added mechanism for directly mapping JS event handlers to blocks 2015-09-02 06:11:24 -08:00
ScrollResponder.js Add scrollWithoutAnimationTo to Android 2015-09-23 05:58:27 -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