Permalink
Browse files

Fix Scrollblocking on Android

Summary:
Without allowing Native Responder on Android, ListView get's Deadlocked while trying to scroll. This happens as soon as a PanResponder fires.

This Commit prevents this Issue and the iOS Optimization for Locking / Unlocking Listview Scrolls does a good job on Android too. So there's no need to prevent the Native Responder.

**Test plan (required)**

Compile on Android in Production Mode and try to scroll before and after this change.
Closes #8556

Differential Revision: D4438057

Pulled By: hramos

fbshipit-source-id: 05f3b7e6b4e49f5c941c7e1ce72c8bf6d66a9a28
  • Loading branch information...
K-Leon authored and facebook-github-bot committed Jan 19, 2017
1 parent 94f71a3 commit 0426732a08ef0127cb9ca6c73465a4bb9b8b3f5c
Showing with 1 addition and 0 deletions.
  1. +1 −0 Libraries/Experimental/SwipeableRow/SwipeableRow.js
@@ -134,6 +134,7 @@ const SwipeableRow = React.createClass({
onPanResponderRelease: this._handlePanResponderEnd,
onPanResponderTerminationRequest: this._onPanResponderTerminationRequest,
onPanResponderTerminate: this._handlePanResponderEnd,
+ onShouldBlockNativeResponder: (event, gestureState) => false,
});
},

0 comments on commit 0426732

Please sign in to comment.