For AI agents: the complete documentation index is available at /1.x/llms.txt, the full documentation bundle is available at /1.x/llms-full.txt, and this page is available as Markdown at /1.x/guide/getting-started/quick-start.md.
  • English
  • 1.x
  • Quick Start

    Install

    npm
    yarn
    pnpm
    bun
    deno
    npm install react-native-youtube-bridge@1.x

    Basic player

    import { YoutubePlayer } from 'react-native-youtube-bridge';
    
    function App() {
      return <YoutubePlayer source="AbZH7XWDW_k" />;
    }

    Accepted source forms

    <YoutubePlayer source="AbZH7XWDW_k" />
    <YoutubePlayer source={{ videoId: 'AbZH7XWDW_k' }} />
    <YoutubePlayer source={{ url: 'https://youtube.com/watch?v=AbZH7XWDW_k' }} />

    Next steps