From e10a72cf31b9a54d4db65a299315c34007a54341 Mon Sep 17 00:00:00 2001 From: Ovidiu Cristescu <55203625+criszz77@users.noreply.github.com> Date: Sun, 15 May 2022 13:48:37 +0300 Subject: [PATCH] fix --- src/VideoPlayer.tsx | 105 +++++++++++++++++++++++--------------------- 1 file changed, 54 insertions(+), 51 deletions(-) diff --git a/src/VideoPlayer.tsx b/src/VideoPlayer.tsx index ff47868..4a4cc1e 100644 --- a/src/VideoPlayer.tsx +++ b/src/VideoPlayer.tsx @@ -387,57 +387,60 @@ export const VideoPlayer = (props: VideoPlayerProps) => { style={[_styles.player.video, styles.videoStyle]} source={source} /> - loading ? : - <> - - - - videoRef?.current?.seek(currentTime - rewindTime) - } - onPressForward={() => - videoRef?.current?.seek(currentTime + rewindTime) - } - /> - - + {loading ? ( + + ) : ( + <> + + + + videoRef?.current?.seek(currentTime - rewindTime) + } + onPressForward={() => + videoRef?.current?.seek(currentTime + rewindTime) + } + /> + + + )} );