Created
December 23, 2016 05:57
-
-
Save dhrrgn/ef2ca53d97955498d00e7b4d49fb3c21 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
onMoveShouldSetPanResponder: (e, g) => { | |
if (g.dx === 0 || g.dy === 0) return false; | |
return true; | |
}, | |
// Or if you like 1 liners: | |
onMoveShouldSetPanResponder: (e, g) => !(g.dx === 0 || g.dy === 0), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment