Components

Complete guide to all React Native Video Toolkit components

All components support TypeScript and are built with the React Native new architecture in mind.

Component Categories

Quick Start

The main entry point is the VideoPlayer component:

import { VideoPlayer } from 'react-native-video-toolkit';

function BasicPlayer() {
  return (
    <VideoPlayer source={{ uri: 'https://example.com/video.mp4' }} style={{ width: '100%', height: 200 }}>
      <VideoPlayer.Controls />
    </VideoPlayer>
  );
}

Component Architecture

The library follows a compound component pattern where the VideoPlayer serves as the main container, and all other components can be composed within it:

  • VideoPlayer: Main container and state provider
  • VideoPlayer.Controls: Pre-built control set
  • Individual Controls: Granular control components
  • Display Elements: Visual feedback components
  • Layout Components: Structural containers

Components should be used within a VideoProvider context, which is automatically provided by VideoPlayer.