Video

Video component can be used to render all types of video items.
It renders a Video based on the source type. If the source is URL to a web player, the video is displayed in a WebView. If the source is a video stream URL, a video HTML element is displayed in the WebView. The component does not support playback of local video files.

Video example

API

Props

  • source: string
    • Prop that defines the source of the video that will be rendered
  • height: number
    • Prop that sets the height of the container where the video preview thumbnail will be rendered
  • width: number
    • Prop that sets the width of the container where the video preview thumbnail will be rendered

Style names

  • None

Style

  • container
    • Style prop for container View that holds the Video component

Example

Video example

JSX Declaration

<Video
    source={{ uri: 'https://www.youtube.com/watch?v=1tavDv5hXpo' }}
    height={200}
    width={300}
/>