Passing parameters in GestureDetector #2361
Unanswered
AntonioLi1
asked this question in
Q&A
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone!
How do I pass parameters in GestureDetector and use them in Gesture.Tap()?
My code looks like this:
`
const singleTap = Gesture.Tap()
.numberOfTaps(1)
.onStart(() => {
console.log('single')
})
.....
return (
<GestureDetector gesture={Gesture.Exclusive(doubleTap, singleTap)}>
.......
)
`
Thanks!!
Beta Was this translation helpful? Give feedback.
All reactions