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
kant and osdnk Syntax issue on paragraph 16 (#916)
* Hanging paragraph on line 22?
Latest commit 0a039ac Jan 25, 2020
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 Fix gesture button states on web (#919) Jan 14, 2020
__mocks__ Added mocks for pan and scroll gesture components (#795) Nov 13, 2019
android feat: add RNGestureHandlerEnabledRootView constructor with attrs so w… Sep 10, 2019
docs Syntax issue on paragraph 16 (#916) Jan 25, 2020
e2e bump e2e Dec 11, 2019
ios Bump to .61 (#807) Oct 29, 2019
touchables Fix gesture button states on web (#919) Jan 14, 2020
web Multiply velocity to match velocity on native devices (#918) Jan 17, 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 Upgrade react native to 0.59.8 (#592) May 13, 2019
.travis.yml bump e2e Dec 11, 2019
.watchmanconfig Initial commit Oct 27, 2016
.yarnclean Create .yarnclean (#882) Dec 30, 2019
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 [web] Fixed lazy exports (#619) Jun 1, 2019
GestureComponents.js Remove ToolbarAndroid (Lean Core) (#888) Jan 2, 2020
GestureComponents.web.js Remove ToolbarAndroid (Lean Core) (#888) Jan 2, 2020
GestureHandler.js [web] Fixed lazy exports (#619) Jun 1, 2019
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
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 Update links to docs Dec 11, 2019
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 [web] Fixed lazy exports (#619) Jun 1, 2019
gestureHandlerRootHOC.android.js Allow again for the root view to be created from JS on android. (#245) Jul 9, 2018
gestureHandlerRootHOC.ios.js Trying out new approach for installing root view on Android Nov 23, 2017
gestureHandlerRootHOC.js changed `gestureHandlerRootHOC.ios.js` to `gestureHandlerRootHOC.js` (#… Nov 28, 2018
index.js Add touchables (#372) Jan 4, 2019
jestSetup.js Add mocks for RNGH (#493) Apr 29, 2019
package-lock.json Replaced HammerJS with EGJS/HammerJS (#896) Dec 31, 2019
package.json Replaced HammerJS with EGJS/HammerJS (#896) Dec 31, 2019
react-native-gesture-handler.d.ts Add missing LongPressGestureHandlerGestureEvent; fixes #723 (#860) Jan 24, 2020
webpack.config.js [web] Updated web example (#855) Dec 13, 2019
yarn.lock [web] Updated web example (#855) Dec 13, 2019

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.