$ npm install react-native-gesture-handler
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.
Check getting started section of our docs for the detailed installation instructions.
To learn how to use react-native-gesture-handler
with Fabric architecture, head over to Fabric README. Instructions on how to run Fabric Example within this repo can be found in the FabricExample README.
Check out our dedicated documentation page for info about this library, API reference and more: https://docs.swmansion.com/react-native-gesture-handler/docs/
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
Run yarn start
to start the metro bundler
Run yarn android
or yarn 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.
version | react-native version |
---|---|
2.18.0+ | 0.73.0+ |
2.16.0+ | 0.68.0+ |
2.14.0+ | 0.67.0+ |
2.10.0+ | 0.64.0+ |
2.0.0+ | 0.63.0+ |
1.4.0+ | 0.60.0+ |
1.1.0+ | 0.57.2+ |
<1.1.0 | 0.50.0+ |
It may be possible to use newer versions of react-native-gesture-handler on React Native with version <= 0.59 by reverse Jetifying. Read more on that here https://github.com/mikehardy/jetifier#to-reverse-jetify--convert-node_modules-dependencies-to-support-libraries
Gesture handler library is licensed under The MIT License.
This project has been build and is maintained thanks to the support from Shopify, Expo.io and Software Mansion
Join the Software Mansion Community Discord to chat about Gesture Handler or other Software Mansion libraries.
Since 2012 Software Mansion is a software agency with experience in building web and mobile apps. We are Core React Native Contributors and experts in dealing with all kinds of React Native issues. We can help you build your next dream product – Hire us.
© 2010 - cnpmjs.org x YWFE | Home | YWFE