Skip to main content

Video

Video is a component for playing video content.

Usage

<Video 
source={{ uri: 'https://example.com/video.mp4' }}
resizeMode="cover"
repeat={true}
muted={false}
/>

Props

source

Type: { uri: string } Required: true

The URL of the video to play.

resizeMode

Type: 'cover' | 'contain' | 'stretch' Default: 'contain'

Determines how the video should be resized:

  • cover: Scale to fill, may crop
  • contain: Scale to fit, may have gaps
  • stretch: Stretch to fill

repeat

Type: boolean Default: false

Whether to loop the video.

paused

Type: boolean Default: false

Whether the video is paused.

muted

Type: boolean Default: false

Whether the video audio is muted.