npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-native-multiple-video-player

v2.0.0

Published

Polished, lightweight React Native video player with multi-video queue. Supports New Architecture (Fabric + TurboModules, RN ≥0.76).

Readme

react-native-multiple-video-player v2.0.0

A polished, lightweight React Native video player with a multi-video queue, modern animated controls, speed picker, playlist drawer, and TypeScript definitions — all with zero extra native dependencies beyond react-native-video.

Requirements: React 18+, React Native 0.76+ (New Architecture–friendly: Fabric-compatible Pressable, Animated with useNativeDriver: true throughout), and react-native-video 6+.


What's new in v2

| Feature | v1 | v2 | |---|---|---| | Animated controls overlay | ❌ | ✅ | | Animated seekbar thumb | ❌ | ✅ | | Buffer fill on seekbar | ❌ | ✅ | | Playback speed picker | ❌ | ✅ 0.5× – 2× | | Visual playlist drawer | ❌ | ✅ FlatList | | Mute toggle | ❌ | ✅ | | Imperative ref API | ❌ | ✅ | | TypeScript types | ❌ | ✅ src/index.d.ts | | Retry on error | ❌ | ✅ tap to retry | | Always-visible progress strip | ❌ | ✅ | | Accessibility labels | ❌ | ✅ | | react-native-orientation dep | required | removed |


Installation

npm install react-native-multiple-video-player
# or
yarn add react-native-multiple-video-player

Peer dependencies (install in your app):

npm install react-native-video

Versions expected by this package: react >=18, react-native >=0.76, react-native-video >=6. Follow the react-native-video setup guide for native linking or autolinking.


Quick start

import React from 'react';
import VideoPlayer from 'react-native-multiple-video-player';

const DATA = [
  { uri: 'https://example.com/video1.mp4', title: 'Episode 1' },
  { uri: 'https://example.com/video2.mp4', title: 'Episode 2' },
];

export default function App() {
  return (
    <VideoPlayer
      data={DATA}
      autoPlay
      autoPlayNextVideo
      loop="none"
      onBack={() => console.log('back pressed')}
      onEnd={() => console.log('all done')}
    />
  );
}

Props

Required

| Prop | Type | Description | |---|---|---| | data | VideoItem[] | Array of video items. Each must have at minimum a uri string. |

interface VideoItem {
  uri: string;
  title?: string; // shown in the top bar when set
}

Optional

| Prop | Type | Default | Description | |---|---|---|---| | defaultVideoIndex | number | 0 | Which video to start on | | autoPlay | boolean | true | Auto-play on mount | | autoPlayNextVideo | boolean | true | Advance to next video on end | | loop | 'none' \| 'one' \| 'all' | 'none' | Loop behaviour | | rate | number | 1 | Initial playback rate | | resizeMode | 'contain' \| 'cover' \| 'stretch' \| 'none' | 'contain' | Passed through to react-native-video | | controlTimeout | number | 3000 | ms before controls auto-hide | | showBottomBar | boolean | true | Show seek bar, time row, and speed control | | style | ViewStyle | — | Override container style |

Callbacks

| Prop | Signature | When fired | |---|---|---| | onBack | () => void | Back button pressed | | onPlay | () => void | Video starts playing | | onPause | () => void | Video paused | | onEnd | () => void | Current item or queue finished (depends on loop / autoPlayNextVideo) | | onLoad | (data) => void | Video loaded and ready (react-native-video load payload) | | onLoadStart | () => void | Load started for the current source | | onError | (err) => void | Playback error |


Imperative ref API

import React, { useRef } from 'react';
import { Button } from 'react-native';
import VideoPlayer from 'react-native-multiple-video-player';

export default function App() {
  const playerRef = useRef(null);

  return (
    <>
      <VideoPlayer ref={playerRef} data={DATA} />
      <Button title="Next" onPress={() => playerRef.current?.next()} />
      <Button title="Seek 30s" onPress={() => playerRef.current?.seek(30)} />
    </>
  );
}

| Method | Description | |---|---| | play() | Start playback | | pause() | Pause playback | | seek(seconds) | Seek to position in seconds | | next() | Jump to next video | | previous() | Jump to previous video |


Additional exports

The package main entry (src/index.js) exports the default VideoPlayer plus optional building blocks if you need them:

import VideoPlayer, {
  SeekBar,
  PlaylistMenu,
  SpeedMenu,
} from 'react-native-multiple-video-player';

LOOP_MODES, SPEED_OPTIONS, COLORS, and helpers like formatTime / clamp / getProgress live under src/constants.js and src/utils.js for internal use; they are not re-exported from the package root. Use string literals for loop ('none' | 'one' | 'all') at the call site.

TypeScript: types are declared in src/index.d.ts (see the types field in package.json).


License

MIT