File tree Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -40,22 +40,17 @@ export default class Row extends Component {
4040 }
4141
4242 _panResponder = PanResponder . create ( {
43- onStartShouldSetPanResponder : ( ) => {
44- if ( this . _isDisabled ( ) ) return false ;
43+ onStartShouldSetPanResponder : ( ) => ! this . _isDisabled ( ) ,
4544
46- return true ;
47- } ,
48-
49- onMoveShouldSetPanResponder : ( ) => {
50- if ( this . _isDisabled ( ) ) return false ;
45+ onMoveShouldSetPanResponder : ( ) => ! this . _isDisabled ( ) ,
5146
52- return true ;
47+ onShouldBlockNativeResponder : ( ) => {
48+ // Returns whether this component should block native components from becoming the JS
49+ // responder. Returns true by default. Is currently only supported on android.
50+ // NOTE: Returning false here allows us to scroll unless it's a long press on a row.
51+ return false ;
5352 } ,
5453
55- onShouldBlockNativeResponder : ( ) => { // Returns whether this component should block native components from becoming the JS
56- return false ; // responder. Returns true by default. Is currently only supported on android.
57- } , // NOTE: Returning false here allows us to scroll unless it's a long press on a row.
58-
5954 onPanResponderGrant : ( e , gestureState ) => {
6055 e . persist ( ) ;
6156 this . _wasLongPress = false ;
You can’t perform that action at this time.
0 commit comments