This is documentation for the next SDK version. For up-to-date documentation, see the latest version (SDK 55).
react-native-gesture-handler
一个提供用于处理复杂手势的 API 的库。
Android
iOS
Web
Included in Expo Go
For the complete documentation index, see llms.txt. Use this Use this file to discover all available pages.
react-native-gesture-handler 是一个用于处理复杂手势的库。来自其 README:
该库提供了一个 API,暴露了移动平台特定的原生触摸与手势处理和识别能力。它允许定义复杂的手势处理和识别逻辑,这些逻辑 100% 运行在原生线程中,因此是确定性的。
安装
Terminal
- npx expo install react-native-gesture-handlerIf 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.
了解更多
访问官方文档
获取有关 API 及其用法的完整信息。