Skip to content
Declarative API exposing platform native touch and gesture system to React Native.
JavaScript Java Objective-C Ruby Other
Branch: master
Clone or download

Latest commit

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
AndroidNativeExample Use ViewConfiguration.getScaledTouchSlop as a default value for min d… Sep 13, 2017
Example Bump version -> 1.6.0 Feb 14, 2020
__mocks__ Added mocks for pan and scroll gesture components (#795) Nov 13, 2019
android Implement event coalescing (#997) Mar 13, 2020
docs Update RotationHandler docs (#708) May 31, 2020
e2e Remove extra hammerjs code (#951) Feb 14, 2020
ios fixed #1042 'waitFor' for sibling pan handlers (#1043) May 3, 2020
touchables Fix missing `Platform` import (#988) Feb 24, 2020
web Fix TapGestureHandler x/y coordinates being undefined (#953) Mar 30, 2020
website Change links to software-mansion (#875) Dec 11, 2019
.buckconfig Initial commit Oct 27, 2016
.flowconfig Update flow to 0.98 (#834) Nov 21, 2019
.gitignore [web] Updated web example (#855) Dec 13, 2019
.npmignore Exclude docs/ and website/ in .npmignore Feb 21, 2020
.prettierrc Use prettier config file for better editor integration (#975) Mar 13, 2020
.travis.yml Fix CI (#968) Feb 14, 2020
.watchmanconfig Initial commit Oct 27, 2016
App.js [web] Updated web example (#855) Dec 13, 2019
Directions.js Add mocks for RNGH (#493) Apr 29, 2019
DrawerLayout.js Update flow to 0.98 (#834) Nov 21, 2019
GestureButtons.js Fix RectButton style prop forwarding (#1015) Apr 26, 2020
GestureComponents.js Remove ToolbarAndroid (Lean Core) (#888) Jan 2, 2020
GestureComponents.web.js Remove ToolbarAndroid (Lean Core) (#888) Jan 2, 2020
GestureHandler.js Export a component for gesture handler root view (#925) Jan 29, 2020
GestureHandlerButton.js fix: web compatibility (#406) Feb 25, 2019
GestureHandlerButton.web.js Web Support (#555) Jul 17, 2019
GestureHandlerPropTypes.js [web] Fixed lazy exports (#619) Jun 1, 2019
GestureHandlerRootView.android.expo.js Export a component for gesture handler root view (#925) Jan 29, 2020
GestureHandlerRootView.android.js Export a component for gesture handler root view (#925) Jan 29, 2020
GestureHandlerRootView.js Export a component for gesture handler root view (#925) Jan 29, 2020
Gestures.js [web] Fixed lazy exports (#619) Jun 1, 2019
LICENSE Add license + update readme + fix package.json + bump version. Oct 27, 2016
NativeViewGestureHandler.js [web] Fixed lazy exports (#619) Jun 1, 2019
PlatformConstants.js fix: web compatibility (#406) Feb 25, 2019
PlatformConstants.web.js [web] Fixed buttons (#644) Jun 19, 2019
README.md Add new Software Mansion logo (#1013) Mar 27, 2020
RNGestureHandler.podspec Change links to software-mansion (#875) Dec 11, 2019
RNGestureHandlerModule.js Add mocks for RNGH (#493) Apr 29, 2019
RNGestureHandlerModule.web.js Web Support (#555) Jul 17, 2019
State.js [web] Fixed lazy exports (#619) Jun 1, 2019
Swipeable.js fix: allow to override gesture handler props in Swipable (#856) Dec 3, 2019
app.json [web] Updated web example (#855) Dec 13, 2019
babel.config.js [web] Updated web example (#855) Dec 13, 2019
createHandler.js Fix #320: Unsupported event crash. (#845) Nov 21, 2019
createNativeWrapper.js Use forwardRef instead of hacks in createNativeWrapper (#972) Mar 13, 2020
gestureHandlerRootHOC.js Fix passing props to gestureHandlerRootHOC.js (#944) Feb 3, 2020
index.js Add touchables (#372) Jan 4, 2019
jestSetup.js Add mocks for RNGH (#493) Apr 29, 2019
package.json Use prettier config file for better editor integration (#975) Mar 13, 2020
react-native-gesture-handler.d.ts Add scrollTo* methods to type definition (#940) Apr 27, 2020
webpack.config.js Remove extra hammerjs code (#951) Feb 14, 2020
yarn.lock Remove extra hammerjs code (#951) Feb 14, 2020

README.md

React Native Gesture Handler

Declarative API exposing platform native touch and gesture system to React Native.

React Native Gesture Handler provides native-driven gesture management APIs for building best possible touch-based experiences in React Native.

With this library gestures are no longer controlled by the JS responder system, but instead are recognized and tracked in the UI thread. It makes touch interactions and gesture tracking not only smooth, but also dependable and deterministic.

Installation

Check getting started section of our docs for the detailed installation instructions.

Documentation

Check out our dedicated documentation page for info about this library, API reference and more: https://software-mansion.github.io/react-native-gesture-handler

Examples

If you want to play with the API but don't feel like trying it on a real app, you can run the example project. Clone the repo, go to the Example/ folder and run:

  yarn install

If you are running on ios, run pod install in the ios folder

Run yarn start to start the metro bundler

Run react-native run-android or react-native run-ios (depending on which platform you want to run the example app on).

You will need to have an Android or iOS device or emulator connected as well as react-native-cli package installed globally.

React native Support

version react-native version
1.4.0+ 0.60.0+
1.1.0+ 0.57.2+
<1.1.0 0.50.0+

License

Gesture handler library is licensed under The MIT License.

Credits

This project is supported by amazing people from Expo.io and Software Mansion

expo swm

You can’t perform that action at this time.