Skip to content

@react-native-youtube-bridge/[email protected]

Choose a tag to compare

@github-actions github-actions released this 15 Jul 09:57
· 10 commits to main since this release
83873fb

Minor Changes

  • 601dbe0: feat: support optional YouTube source for dynamic loading

    • Extend YouTubeSource type to accept undefined values
    • Add defensive logic for undefined source handling
    • Enable async video ID loading patterns
    • Maintain backward compatibility with existing usage

    New usage pattern:

    type YouTubeSource =
      | string
      | { videoId: string | undefined }
      | { url: string | undefined }
      | undefined;
    
    const [videoId, setVideoId] = useState<string | undefined>();
    const player = useYouTubePlayer(videoId); // Now supports undefined

Patch Changes