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

expo-transparent-video

v0.3.4

Published

An Android transparent video component for React Native and Expo.

Readme

Expo Transparent Video

expo-transparent-video provides support for performant transparent video, on Android, for React Native and Expo.

Installation

  1. Install the package
# using npm
npm install expo-transparent-video

# or using yarn
yarn add expo-transparent-video
  1. Build the package

With expo:

expo-transparent-video relies on native code, so you will need to create a development build to use it.

npx expo prebuild
npx expo run:android

With react-native:

npx react-native run-android

Usage

Since this package only supports Android, it's recommended to create a platform-specific component.

VideoPlayer.android.tsx:

import { TransparentVideoView, useVideoPlayer } from 'expo-transparent-video';

export const VideoPlayer = () => {
  const player = useVideoPlayer('https://cdn.example.com/video.webm');

  player.paused = false;
  player.repeat = true;

  return (
    <TransparentVideoView player={player} />
  );
};

[!WARNING] expo-transparent-video only support external links to video files. You can't use local files.

How to create a transparent video for Android?

The source must be a video compatible with Android.

The source must be a composition of two videos vertically superposed:

  1. The upper part of the video must display the rgb channels

  2. The lower part of the video must display the alpha mask in grayscale (black -> alpha = 0% opacity, white -> alpha = 100% opacity) to apply to the rgb part.

|-----------------------|
|                       |
|                       |
|       rgb video       |
|                       |
|                       |
|-----------------------|
|                       |
|                       |
|  alpha mask video     |
|                       |
|                       |
|-----------------------|

[!WARNING] This cannot display a video that has an alpha channel like transparent webm. It only blends rgb data with alpha data.

But... why?

Well, the default's Android ExoPlayer does not support alpha channel videos. Meaning, if your .webm (or other supported format) has transparency, it will be rendered as black.

This package relies on a technique explained in this Medium article to enable transparency in videos on Android.

License

expo-transparent-video library is licensed under The MIT License.

Credits

This project has been built and is maintained thanks to the support from Software Mansion

swm

expo-transparent-video is created by Software Mansion

Since 2012 Software Mansion is a software agency with experience in building web and mobile apps. We are Core React Native Contributors and experts in dealing with all kinds of React Native issues. We can help you build your next dream product – Hire us.