withRef/simultaneousHandlers usage in RNGH v3 #4418
Unanswered
lovegaoshi
asked this question in
Q&A
Replies: 2 comments 3 replies
|
Hi @lovegaoshi! Could you show example which you find confusing to migrate? In general, if you don't use relations hooks, you should be able to pass gestures objects to the relevant config fields, e.g.: const innerTap = useTapGesture({});
const outerTap = useTapGesture({
requireToFail: innerTap,
}); |
0 replies
|
thanks for the response, im specifically looking at withRef as I need to pass it to another legacy prop RNGHScrollView.overrideProps.simutaneousHandlers the goal is to enable both the scrollivew's native handler + an additional handler. specifically my case is I want to use scrollview's pull down to refresh at the beginning + a custom gesture's pull up to refresh at the bottom. my previous testing using simultaneous with nativeGesture and panGesture doesnt work, only via overrideProps.simutaneousHandlers. |
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.
hi! i wonder whats the correct usage/migration of Gesture.withRef/simultaneousHandlers (which accepts a ref of gesture) in RNGH v3? the new docs have 0 mentions of this. This is relevant in eg. #3595 Many thanks in advance!
All reactions