Skip to content
Proyek

react-native-bridges/react-native-youtube-bridge

Lihat di GitHub

Tentang

๐ŸŽฅ Easy-to-use YouTube player for React Native with cross-platform support

Pengembangan web dan aplikasi

Cara angka ini diukur

Yang dapat Anda lakukan

  • ๐ŸŽฅ YouTube IFrame Player API - Uses YouTube's iframe player instead of native YouTube modules
  • ๐Ÿช Hook-Based API - Create a player with useYouTubePlayer and render it with YoutubeView
  • ๐Ÿ”” Typed Events - Subscribe to ready, state, progress, mute, and error updates with useYouTubeEvent
  • ๐ŸŒ Cross-Platform - Supports iOS, Android, and React Native Web

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
0
dalam 15 hari
0
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

React Native Youtube Bridge

English | ํ•œ๊ตญ์–ด

React Native Youtube Bridge logo

Overview

Using a YouTube player in React Native usually means wiring the YouTube IFrame API, WebView behavior, events, and platform differences yourself.

react-native-youtube-bridge provides a typed, hook-based YouTube player for React Native apps across iOS, Android, and Web.

Demo of react-native-youtube-bridge

Key Features

  • ๐ŸŽฅ YouTube IFrame Player API - Uses YouTube's iframe player instead of native YouTube modules
  • ๐Ÿช Hook-Based API - Create a player with useYouTubePlayer and render it with YoutubeView
  • ๐Ÿ”” Typed Events - Subscribe to ready, state, progress, mute, and error updates with useYouTubeEvent
  • ๐ŸŒ Cross-Platform - Supports iOS, Android, and React Native Web
  • ๐Ÿงฉ Flexible Rendering Modes - Use inline HTML by default or an external WebView player page when needed
  • ๐Ÿง  TypeScript Support - Typed player methods, events, source inputs, and view props
  • ๐Ÿš€ Expo Friendly - Works well in Expo and modern React Native projects

Quick Start

๐Ÿ“š Documentation

Full documentation is available at: https://react-native-youtube-bridge-docs.pages.dev

Examples & Demo

๐Ÿค– AI

  • llms.txt: A structured index file containing documentation pages and descriptions.
  • llms-full.txt: A full-content file that concatenates the complete documentation into a single file.

Installation

npm install react-native-youtube-bridge

Basic Usage

import { YoutubeView, useYouTubePlayer } from 'react-native-youtube-bridge';

function App() {
  const player = useYouTubePlayer('AbZH7XWDW_k');

  return <YoutubeView player={player} />;
}

For events, player controls, rendering modes, WebView customization, and migration details, see the full documentation.

Contributing

For details on how to contribute to the project and set up the development environment, please refer to the Contributing Guide.

License

MIT

Jelajahi proyek terkait

Memuatโ€ฆ