12

I would like to have a button in react-native app so that can trigger/simulate a touch on screen by given x, y coordinates. Just like:

touchMe(x, y)

Is there any ways that can help me to do that?

I have read about some article about mock touch by using jest, enzyme but they are use for testing. Do they use for development as well?

Please help to advise!

Thank you!

Boomba
  • 121
  • 5

0 Answers0