Skip to content

Commit 2561734

Browse files
committed
Fix code style
1 parent 97163b8 commit 2561734

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

src/Row.js

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)