diff --git a/app/screens/image_preview/video_preview.js b/app/screens/image_preview/video_preview.js index 8e812ac68..19a730c92 100644 --- a/app/screens/image_preview/video_preview.js +++ b/app/screens/image_preview/video_preview.js @@ -164,16 +164,16 @@ export default class VideoPreview extends PureComponent { }; onReplay = () => { - if (this.refs.videoPlayer) { + if (this.videoPlayerRef) { this.setState({playerState: PLAYER_STATE.PLAYING, paused: false}); - this.refs.videoPlayer.seek(0); + this.videoPlayerRef.seek(0); } }; onSeek = (seek) => { - if (this.refs.videoPlayer) { + if (this.videoPlayerRef) { this.setState({currentTime: seek}, () => { - this.refs.videoPlayer.seek(seek); + this.videoPlayerRef.seek(seek); }); } }; @@ -215,7 +215,7 @@ export default class VideoPreview extends PureComponent { this.refs.controls.fadeInControls()} + onPress={() => this.controlsRef?.fadeInControls()} >