You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Image] pointerEvents prop for Image component? #9834
There are a variety of use cases where being able to specify pointerEvents on an image would solve zIndex / overlap / touch event complexities. Please see react-native-maps/react-native-maps#562 (comment) as an example.
Why wouldn't having <View pointerEvents="none"><Image/></View> not solve the issue? That should make the entire view untouchable. Even without it, a view itself does not have a touch interaction of its own, so a view like <View><Image/></View> should not need any pointer events as far as I understand. Can you share the code example that doesn't work?
Activity
hey99xx commentedon Oct 12, 2016
Why wouldn't having
<View pointerEvents="none"><Image/></View>not solve the issue? That should make the entire view untouchable. Even without it, a view itself does not have a touch interaction of its own, so a view like<View><Image/></View>should not need any pointer events as far as I understand. Can you share the code example that doesn't work?zIndex docs are here https://facebook.github.io/react-native/docs/layout-props.html#zindex . I'm not sure how pointerEvents relate to zIndex though.