{"repo":"glepur/react-native-swipe-gestures","free":true,"listed":false,"github":"https://github.com/glepur/react-native-swipe-gestures","clone":"git clone https://github.com/glepur/react-native-swipe-gestures.git","description":"4-directional swipe gestures for react-native","language":"JavaScript","stars":606,"topics":["react-native","swipe","gesture","gestures","touch"],"license":"MIT","category":"mobile-apps","readme_excerpt":"react-native-swipe-gestures React Native component for handling swipe gestures in up, down, left and right direction. Installation npm i -S react-native-swipe-gestures Usage Config Can be passed within optional config property. Params Type Default Description -------------------------- :-------------: ------- ------------ velocityThreshold Number 0.3 Velocity that has to be breached in order for swipe to be triggered ( vx and vy properties of gestureState ) directionalOffsetThreshold Number 80 Absolute offset that shouldn't be breached for swipe to be triggered ( dy for horizontal swipe, dx for vertical swipe) gestureIsClickThreshold Number 5 Absolute distance that should be breached for the gesture to not be considered a click ( dx or dy properties of gestureState ) Methods onSwipe(gestureName, gestureState) Params Type Description ------------- :-------------: ------------ gestureName String Name of the gesture (look example above) gestureState Object gestureState received from PanResponder onSwipeUp(gestureState) Params Type Description ------------- :-------------: ------------ gestureState Object gestureState received from PanResponder onSwipeDown(gestureState) Params Type Description ------------- :-------------: ------------ gestureState Object gestureState received from PanResponder onSwipeLeft(gestureState) Params Type Description ------------- :-------------: ------------ gestureState Object gestureState received from PanResponder onSwipeRight(gestureState) Params T","default_branch":null,"files":null,"tree":[],"storefront":"/r/glepur","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/glepur/react-native-swipe-gestures/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}