This library provides an API that exposes mobile platform specific native capabilities of touch & gesture handling and recognition. It allows for defining complex gesture handling and recognition logic that runs 100% in native thread and is therefore deterministic.
Android Device | Android Emulator | iOS Device | iOS Simulator | Web |
---|---|---|---|---|
→
expo install react-native-gesture-handler
If you're installing this in a bare React Native app, you should also follow these additional installation instructions.
import 'react-native-gesture-handler';
import { TapGestureHandler, RotationGestureHandler } from 'react-native-gesture-handler'; class ComponentName extends Component { render() { return ( <TapGestureHandler> <RotationGestureHandler>...</RotationGestureHandler> </TapGestureHandler> ); } }