diff --git a/src/Video.web.tsx b/src/Video.web.tsx index e7b8c361..86aea96b 100644 --- a/src/Video.web.tsx +++ b/src/Video.web.tsx @@ -230,18 +230,20 @@ const Video = forwardRef( onVolumeChange?.({volume: nativeRef.current.volume}); }} onEnded={onEnd} - style={{ - position: 'absolute', - inset: 0, - objectFit: 'contain', - width: '100%', - height: '100%', - }} + style={videoStyle} /> ); }, ); +const videoStyle = { + position: 'absolute', + inset: 0, + objectFit: 'contain', + width: '100%', + height: '100%', +} satisfies React.CSSProperties; + const useMediaSession = ( metadata: VideoMetadata | undefined, nativeRef: RefObject,