react-native-gesture-handler

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

Android
iOS
Web
Included in Expo Go
Bundled version:
~2.28.0

react-native-gesture-handler 是一个用于处理复杂手势的库。来自它的自述文件:

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

安装

🌐 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 及其使用的完整信息。