Replies: 1 comment 3 replies
-
最新的API中、continues类型的Gesture有 manualActivation 回调、里面的state 可以用来手动fail掉Gesture。像RN的这种自定义前置条件来决定手势的响应、似乎是没得的。RNGH提供了 waitFor 和 simultaneous 来决定手势的响应顺序或同时响应。像你上面提到的这种应该是 点击事件 需要 waitFor 滚动手势响应结束才执行,ScrollView的所有子组件都要添加GestureDetector, waitFor滚动手势。 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a scrollview and inside the scrollview are TouchableOpacities.
I want to disable these TouchableOpacities when scrolling.
onStartShouldSetResponderCapture
will always return true, which I can't activiate these TouchableOpacities any more.I want to know if there's a way in
react-native-gesture-handler
that I can do that?Beta Was this translation helpful? Give feedback.
All reactions