Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/react-native/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
React native 在React Native中是否有使用event.target的方法?_React Native - Fatal编程技术网

React native 在React Native中是否有使用event.target的方法?

React native 在React Native中是否有使用event.target的方法?,react-native,React Native,我正在寻找我问题的答案,但还没有找到任何答案。那么,有没有办法访问React Native中的event.target?或者我如何做类似的事情,我需要这个,因为我想在React-Native中转换我的Web应用程序 在赢得ReactNativeComponentTree之前有一种方法,但在新版本的RN中该方法已被删除。您是否尝试过useRef()?我将尝试一下,看看有什么效果happens@IonutC.Kevin. 你找到解决办法了吗?请检查这个问题。

我正在寻找我问题的答案,但还没有找到任何答案。那么,有没有办法访问React Native中的event.target?或者我如何做类似的事情,我需要这个,因为我想在React-Native中转换我的Web应用程序


在赢得ReactNativeComponentTree之前有一种方法,但在新版本的RN中该方法已被删除。

您是否尝试过
useRef()
?我将尝试一下,看看有什么效果happens@IonutC.Kevin. 你找到解决办法了吗?请检查这个问题。