Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-swipe-gestures-recognizer

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

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

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
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

Package last updated on 26 Aug 2019

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc