react-native-gesture-handler

提供用于处理复杂手势的 API 的库。

Android
iOS
Web
Bundled version:
~2.24.0

react-native-gesture-handler 是一个用于处理复杂手势的库。来自其 README:

¥react-native-gesture-handler is a library for handling complex gestures. From it's README:

该库提供了一个 API,可公开特定于移动平台的触摸和手势处理和识别的原生功能。它允许定义复杂的手势处理和识别逻辑,这些逻辑 100% 在原生线程中运行,因此具有确定性。

¥This library provides an API that exposes mobile platform-specific native capabilities of touch and gesture handling and recognition. It allows for defining complex gesture handling and recognition logic that runs 100% in the native thread and is therefore deterministic.

安装

¥Installation

Terminal
npx expo install react-native-gesture-handler

If you are installing this in an existing React Native app, make sure to install expo in your project. Then, follow the installation instructions provided in the library's README or documentation.

了解更多

¥Learn more

访问官方文档

获取有关 API 及其用法的完整信息。