React Native Gesture Handler
Declarative gesture handling for React Native with native performance.
2. Maintained
Latest GitHub release Nov 5, 2026.
github.com/software-mansion/react-native-gesture-handler3. Used by agents' projects
Dependency in 99 public GitHub projects set up for AI coding agents that we scanned (1.6%).
4. Agent access
Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.
docs.swmansion.com/react-native-gesture-handler/llms.txtFrom the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error
What React Native Gesture Handler does
Gesture Handler moves touch handling out of React Native's JS responder system and onto each platform's native recognizers on the UI thread, and it gives you hooks and relation properties to decide which gesture wins when several compete.
React Native Gesture Handler popularity
Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated
How React Native Gesture Handler is used
- React Native Gesture Handler is a dependency in 99 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (2.0% of the 4,867 JavaScript/TypeScript ones), #5 of 105 in desktop and mobile apps.
- Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 159; those are left out of every share on this page.
- Projects that use it most often also use React Native (100.0%), react-native-safe-area-context (100.0%), react-native-screens (99.0%).
By coding agent
Often used with
React Native Gesture Handler in practice
Strengths
Gestures are recognized and tracked on the UI thread, not by the JS responder system. The README says this makes touch interactions "dependable and deterministic", not only smooth.
Three composition hooks bundle gestures attached to the same component. With <code>useCompetingGestures</code>, the first gesture to activate cancels the rest. With <code>useSimultaneousGestures</code>, all of them can run at once. With <code>useExclusiveGestures</code>, the order of the arguments sets priority.
When gestures sit on different components, the relation properties <code>simultaneousWith</code>, <code>requireToFail</code> and <code>block</code> define how they interact. The docs single out <code>block</code> for a ScrollView that must wait on the gestures beneath it.
The new Touchable component is meant to supersede Pressable and Buttons. The site lists scale, opacity, underlay and Android ripple feedback as built in.
Watch out for
The docs say the library supports the three latest minor releases of React Native. The 3.x compatibility table covers React Native 0.82 to 0.87. It marks 3.3.x as not supporting 0.82.
Projects on older React Native versions stay on Gesture Handler 2. The README links to the version 3 compatibility table in the docs and lists a separate table for version 2.
Gestures outside <code>GestureHandlerRootView</code> are not recognized. Relations only work between gestures under the same root. The docs say Modal content and, with wix/react-native-navigation, every screen need their own wrapper.
Wrap the app in GestureHandlerRootView
import { GestureHandlerRootView } from 'react-native-gesture-handler' ;
export default function App ( ) {
return (
< GestureHandlerRootView >
< ActualApp />
</ GestureHandlerRootView >
) ;
}More about React Native Gesture Handler
Funding
- GitHub Sponsors: https://github.com/software-mansion
- 10 GitHub sponsors
Packages around it
- react-native: Mobile app framework
- react-native-safe-area-context: Safe area insets
- react-native-screens: Native screen containers
- expo: React Native platform and tooling
- react-native-reanimated: UI-thread animations
- @react-navigation/native: App navigation
Alternatives
React Native Gesture Handler This page
Get started
Install it.
npm install react-native-gesture-handlerRules for your agent
## React Native Gesture Handler
- In Expo projects, install with `npx expo install react-native-gesture-handler`. For an Expo development build, run `npx expo prebuild` to update the native code.
- Wrap the app in `GestureHandlerRootView`, as close to the actual root as possible. Gestures outside it are not recognized.
- Wrap `Modal` content in its own `GestureHandlerRootView`. With wix/react-native-navigation, wrap every registered screen.
- In 3.x, create gestures with hooks such as `useTapGesture` and attach them with `GestureDetector`.
- For gestures on the same component, use `useCompetingGestures`, `useSimultaneousGestures` or `useExclusiveGestures`. Across components, use `simultaneousWith`, `requireToFail` or `block`.
- Do not try to set relations between hook-based gestures and gestures from previous APIs.
- For UI-thread gesture animation, the recommended route is `react-native-reanimated` plus `react-native-worklets`. Check that the React Native version is in the compatibility table, because 3.x needs at least 0.82.