mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-16 18:50:07 +08:00
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 https://github.com/facebook/react-native/pull/8556 Differential Revision: D4438057 Pulled By: hramos fbshipit-source-id: 05f3b7e6b4e49f5c941c7e1ce72c8bf6d66a9a28
This commit is contained in:
committed by
Facebook Github Bot
parent
94f71a3884
commit
0426732a08
@@ -134,6 +134,7 @@ const SwipeableRow = React.createClass({
|
||||
onPanResponderRelease: this._handlePanResponderEnd,
|
||||
onPanResponderTerminationRequest: this._onPanResponderTerminationRequest,
|
||||
onPanResponderTerminate: this._handlePanResponderEnd,
|
||||
onShouldBlockNativeResponder: (event, gestureState) => false,
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user