React native trigger/simulate touch event

我的梦境 提交于 2021-02-10 12:10:10

问题


How do I simulate the touch event in React native?

Basically I have X and Y cordinates of an onPress event and want to trigger a touch event at the same position again.

This is doable in javascript

document.elementFromPoint(x, y).click();

But doable in RN?

来源:https://stackoverflow.com/questions/60994249/react-native-trigger-simulate-touch-event

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!