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 {
40
40
}
41
41
42
42
_panResponder = PanResponder . create ( {
43
- onStartShouldSetPanResponder : ( ) => {
44
- if ( this . _isDisabled ( ) ) return false ;
43
+ onStartShouldSetPanResponder : ( ) => ! this . _isDisabled ( ) ,
45
44
46
- return true ;
47
- } ,
48
-
49
- onMoveShouldSetPanResponder : ( ) => {
50
- if ( this . _isDisabled ( ) ) return false ;
45
+ onMoveShouldSetPanResponder : ( ) => ! this . _isDisabled ( ) ,
51
46
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 ;
53
52
} ,
54
53
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
-
59
54
onPanResponderGrant : ( e , gestureState ) => {
60
55
e . persist ( ) ;
61
56
this . _wasLongPress = false ;
You can’t perform that action at this time.
0 commit comments