Exposes platform touch and gesture recognition to React Native with handlers running on the UI thread instead of the JS responder system.
Overview
React Native Gesture Handler is a library for building touch and gesture-driven interfaces in React Native. It offers a declarative API over each platform’s native gesture recognizers so pans, taps, pinches, and related gestures are tracked off the JavaScript thread.
Gestures are recognized and updated on the UI thread, which the authors describe as making interactions smoother and more predictable than relying on the default JS responder chain. The package ships helper components such as swipeable rows and drawer patterns, and integrates with Reanimated for gesture-driven animations.
Documentation covers installation, API reference, version compatibility with React Native releases, and a Touchable component meant to replace common Pressable and button patterns with native scale, opacity, underlay, and Android ripple behavior. Example projects can be run on connected Android or iOS devices or emulators.
The library is maintained by Software Mansion, described as a React Native contributor agency, with community support through Discord.
Key features
- UI-thread gesture recognition
- Declarative gesture handler API
- Swipeable row and drawer components
- Reanimated integration
- Touchable with native press feedback
- Pan, tap, pinch, fling, and long-press hooks
- Example apps for Android and iOS
- Dedicated documentation site
Use cases
- Swipeable lists and drawers
- Custom pan and drag interactions
- Gesture-driven animations with Reanimated
- Replacing JS-thread touch responders