Expo

Documentation

GestureHandler

An API for handling complex gestures. From the project's README:
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.

To install this API in a managed or bare React Native app, run expo install react-native-gesture-handler. In bare apps, also follow the react-native-gesture-handler linking and configuration instructions.

Importing gesture handlers:
import { TapGestureHandler, RotationGestureHandler } from 'react-native-gesture-handler';

class ComponentName extends Component { 
  render () {
    return (
      <TapGestureHandler>
        <RotationGestureHandler>
        ...
        </RotationGestureHandler>
      </TapGestureHandler>
    );
  }
}
Read the react-native-gesture-handler docs for more information on the API and usage.