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中将userInteractionEnabled设置为false_React Native - Fatal编程技术网

React native 在react native中将userInteractionEnabled设置为false

React native 在react native中将userInteractionEnabled设置为false,react-native,React Native,有没有办法在RN中的映像组件上设置userInteractionEnabled false 询问它是因为需要实现下面的设计。右侧有一个模糊覆盖。我们希望它下面的文本仍然可以处理点击,所以需要将模糊图像userInteractionEnabled设置为false react native中的userInteractionEnabled的等价物是视图的touchEvents道具 您可以在图像上将其设置为“无”,它将不再拦截触摸。 这很容易

有没有办法在RN中的映像组件上设置userInteractionEnabled false

询问它是因为需要实现下面的设计。右侧有一个模糊覆盖。我们希望它下面的文本仍然可以处理点击,所以需要将模糊图像userInteractionEnabled设置为false


react native中的
userInteractionEnabled
的等价物是视图的
touchEvents
道具

您可以在图像上将其设置为“无”,它将不再拦截触摸。 这很容易