@react-native-gpui / gesture-handler
桌面支持 react-native-gesture-handler:鼠标、触控板和触摸屏的手势。
的一部分 react-native-gpui, macOS, Windows和Linux的React Native。
安装
将它安装在 react-native-gesture-handler:
npm install [email protected] @react-native-gpui/gesture-handler
手势处理程序需要Reanimated 4.7。x和Worklets 0.13。X,以及他们的桌面包 @react-native-gpui/reanimated 和 @react-native-gpui/worklets.
继续使用 react-native-gesture-handler 就像你在iOS和Android上做的那样;它的JavaScript API没有改变。自动链接在构建应用程序时构建桌面端。
文档
许可证
麻省理工学院。看到 许可证.