TheWidlarzGroup/react-native-video
View on GitHub[Bug]: pointerEvents is not respected
Open
#3,315 opened on Oct 25, 2023
6.x.xMissing ReproNewer Version AvailablePlatform: AndroidPlatform: WindowsPlatform: iOSV6bugdifficulty: easyfeaturegood first issuehelp wantedpriority: mediumtriaged
Repository metrics
- Stars
- (7,677 stars)
- PR merge metrics
- (Avg merge 2d 3h) (11 merged PRs in 30d)
Description
What happened?
The pointerEvents prop is not respected by the Video component. When pointerEvents="none" is set, it is not passed through to the rendered View, so pointer/touch events do not pass through to content behind the video.
Expected behaviour
pointerEventsis passed through to the renderedView.- Pointer events go through to content behind the video.
Reproducible sample code
<Video pointerEvents="none" />
Steps to reproduce
- Render a
Videocomponent withpointerEvents="none". - Place interactive content behind the video.
- Observe that the
pointerEventsvalue is not passed through to the underlyingView. - Attempt to interact with the content behind the video — interaction is blocked.
Reproduction repository
No response
react-native-video version
6.0.0
react-native version
No response
react-native-nitro-modules version
No response
Platforms
iOS, Android, Windows
OS version
No response
Device
iPhone 14
Architecture
No response
Expo
No response
Last working version
No response
Media / source type
No response