From 13a19a8897b4d96b9dfbee5640451d6913a4f44c Mon Sep 17 00:00:00 2001 From: Chirag Date: Mon, 11 Jul 2016 04:56:20 -0700 Subject: [PATCH] Don't block scroll when using non-touchable visible row for SwipeableRow Summary: **motivation** Currently when using a non-touchable visible row for a SwipeableRow, the scroll on list view is blocked. **Test Plan** ``` } renderQuickActions={() => } /> ``` * Tested that when using non-touchable for renderRow allows scrolling on list view. * Tested that when using touchable for renderRow allows scrolling on list view. cc fred2028 Closes https://github.com/facebook/react-native/pull/8537 Differential Revision: D3542407 Pulled By: fred2028 fbshipit-source-id: b7ad7ff7c7dd1b717544746a85bb265414aa18f4 --- Libraries/Experimental/SwipeableRow/SwipeableRow.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Libraries/Experimental/SwipeableRow/SwipeableRow.js b/Libraries/Experimental/SwipeableRow/SwipeableRow.js index 23a608902..80a2ffb5f 100644 --- a/Libraries/Experimental/SwipeableRow/SwipeableRow.js +++ b/Libraries/Experimental/SwipeableRow/SwipeableRow.js @@ -128,10 +128,6 @@ const SwipeableRow = React.createClass({ componentWillMount(): void { this._panResponder = PanResponder.create({ - onStartShouldSetPanResponder: (event, gestureState) => true, - // Don't capture child's start events - onStartShouldSetPanResponderCapture: (event, gestureState) => false, - onMoveShouldSetPanResponder: (event, gestureState) => false, onMoveShouldSetPanResponderCapture: this._handleMoveShouldSetPanResponderCapture, onPanResponderGrant: this._handlePanResponderGrant, onPanResponderMove: this._handlePanResponderMove,