react-native-true-sight icon indicating copy to clipboard operation
react-native-true-sight copied to clipboard

Hook when controls are shown/hidden

Open garciabruno opened this issue 4 years ago • 1 comments

Hello, I would like to perform an action when the screen is tapped, currently the only thing it does is hide/show main control and bottom controls.

Currently there's no way to hook into the onPressed event on VideoPlayer component. This could be an extra optional prop on VideoPlayer component that gets called on the same Callback

https://github.com/ScreamZ/react-native-true-sight/blob/master/src/modules/video-player/components/VideoPlayer.tsx#L109

garciabruno avatar Jan 20 '21 15:01 garciabruno

@garciabruno Could you achieve it by wrapping the full component with a onClick handler ?

ScreamZ avatar Oct 25 '22 09:10 ScreamZ