·
10 commits
to main
since this release
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
- Updated dependencies [601dbe0]
- @react-native-youtube-bridge/[email protected]