Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@react-native-youtube-bridge/web

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-native-youtube-bridge/web

Web implementation for react-native-youtube-bridge

latest
Source
npmnpm
Version
2.1.4
Version published
Maintainers
1
Created
Source

React Native Youtube Bridge Web

English | 한국어

A YouTube player library for external WebView implementation, designed to work seamlessly with react-native-youtube-bridge in React Native environments.

Overview

This library is useful when you want to implement external WebView functionality through custom web pages for playing YouTube videos in React Native applications.

Use Cases

In React Native environments, you can use YouTube iframe in WebView through two different approaches:

function App() {
  return (
    <>
      {/* Method 1: Using inline HTML (default) */}
      <YoutubePlayer
        source={source}
        useInlineHtml
      />
      
      {/* Method 2: Using external WebView page */}
      <YoutubePlayer
        source={source}
        useInlineHtml={false}
        // Default: https://react-native-youtube-bridge.pages.dev
        webViewUrl="https://your-custom-player.com"
      />
    </>
  )
}

Currently, the default static site (https://react-native-youtube-bridge.pages.dev) is being used as the external WebView URL.

If you want to use your own custom player page, simply pass the URL to the webViewUrl property. You can easily build a React-based custom player page using @react-native-youtube-bridge/web.

Installation

# npm
npm install @react-native-youtube-bridge/web

# pnpm
pnpm add @react-native-youtube-bridge/web

# yarn
yarn add @react-native-youtube-bridge/web

# bun
bun add @react-native-youtube-bridge/web

Usage

import { YoutubePlayer } from '@react-native-youtube-bridge/web';

function CustomPlayerPage() {
  return <YoutubePlayer />;
}

export default CustomPlayerPage;

Contributing

Please refer to the Contributing Guide for detailed information about how to contribute to this project and our development workflow.

License

MIT

Keywords

react-native

FAQs

Package last updated on 16 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts