检测React Native中的左侧滑动 [英] Detect swipe left in React Native

查看:876
本文介绍了检测React Native中的左侧滑动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在React Native中检测整个屏幕上的左侧滑动?

How can I detect a left swipe on the entire screen in React Native?

是否有必要使用PanResponder或者它可以更轻松地完成吗?

Would it be necessary to use PanResponder or can it be done a little more easy?

推荐答案

现有组件 react-native-swipe-gestureures 处理上,下,左,右方向的滑动手势,请参阅 https:// github .com / glepur / react-native-swipe-gestureures

There is an existing component react-native-swipe-gestures for handling swipe gestures in up, down, left and right direction, see https://github.com/glepur/react-native-swipe-gestures

这篇关于检测React Native中的左侧滑动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆