Socket
Socket
Sign inDemoInstall

react-native-swipe-gestures-recognizer

Package Overview
Dependencies
2
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-native-swipe-gestures-recognizer

Gesture recognizer component made with react-native-gesture-handler


Version published
Weekly downloads
8
decreased by-27.27%
Maintainers
1
Install size
4.90 MB
Created
Weekly downloads
 

Readme

Source

react-native-swipe-gestures-recognizer

Installation

Open a Terminal in the project root and run:

yarn add react-native-gestures-recognizer

or if you use npm:

npm install react-native-gestures-recognizer

If you are using Expo, you are done.

If you don't use Expo, install and link react-native-gesture-handler.

Props

namerequireddefaultdescription
confignothe config object (todo)
onSwipenonullThe function that runs on every swipe and returns swipeDirection and PanGestureHandlerGestureEvent
onSwipeUpnonullThe function that runs when a SWIPE_UP is detected.
onSwipeLeftnonullThe function that runs when a SWIPE_LEFT is detected.
onSwipeRightnonullThe function that runs when a SWIPE_RIGHT is detected.
onSwipeDownnonullThe function that runs when a SWIPE_DOWN is detected.

Example

More complex examples can be found in the Example folder.

yarn
cd Example
yarn
yarn start

Keywords

FAQs

Last updated on 26 Aug 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc