groundup-rn-youtube-player
TypeScript icon, indicating that this package has built-in type declarations

2.0.18 • Public • Published

Importing

import YouTube from 'groundup-rn-youtube-player';

Usage

<YouTube
  play={true}
  
  apiKey="YOUR_API_KEY"
  
  videoId="VIDEO_ID"

  markAsCompleteAfterPercent={90} //Percent from [0 - 100]
  onCompleted={() => {
    console.log('ON Completed');
  }}

  notifyAfterSeconds={3} //In Seconds
  onWatchedSeconds={(watchedSeconds) => {
    console.log('Watched:', watchedSeconds)
  }}


  style={{
    width,
    height: 300
  }}
/>

Package Sidebar

Install

npm i groundup-rn-youtube-player

Weekly Downloads

1

Version

2.0.18

License

MIT

Unpacked Size

317 kB

Total Files

42

Last publish

Collaborators

  • rathoddeepak