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