Skip to content

Conversation

@saseungmin
Copy link
Member

@saseungmin saseungmin commented Jun 24, 2025

  • Added custom player page documentation
  • Included code example for @react-native-youtube-bridge/web usage
  • Added reference link to web player guide

Summary by CodeRabbit

  • Documentation

    • Improved guidance on customizing and using the WebView rendering mode in the React Native YouTube Bridge documentation, including new code examples and clearer instructions.
    • Added Korean and English README files for the web package, providing setup instructions, usage examples, and contribution guidelines.
    • Corrected and clarified links to contributing guides in documentation.
  • Chores

    • Added MIT license files to relevant packages for clear open-source licensing.
    • Removed an obsolete Babel configuration file.

- Added custom player page documentation
- Included code example for @react-native-youtube-bridge/web usage
- Added reference link to web player guide
@changeset-bot
Copy link

changeset-bot bot commented Jun 24, 2025

⚠️ No Changeset found

Latest commit: f3cee3c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai
Copy link

coderabbitai bot commented Jun 24, 2025

Walkthrough

A Babel configuration file was removed, and new MIT license files were added to two package directories. Documentation for the React Native YouTube Bridge and its web component was enhanced, including new and updated README files in both English and Korean, with improved instructions for customizing the WebView player and clearer usage examples.

Changes

File(s) Change Summary
babel.config.js Deleted Babel configuration file with overrides for different directories.
packages/react-native-youtube-bridge/LICENSE, packages/web/LICENSE Added MIT license files to both package directories.
packages/react-native-youtube-bridge/README.md, README-ko_kr.md Enhanced documentation: clarified WebView usage, added custom player instructions, fixed guide links.
packages/web/README.md, README-ko_kr.md Added new README files (English and Korean) introducing the web package, usage modes, and instructions.

Poem

In the warren, docs grow bright,
Licenses shine in morning light.
WebViews hop with custom flair,
And README tales are everywhere.
With Babel gone, code feels new—
A rabbit’s thanks for all you do!
🐇✨

✨ Finishing Touches
  • 📝 Generate Docstrings

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@cloudflare-workers-and-pages
Copy link

Deploying react-native-youtube-bridge-example with  Cloudflare Pages  Cloudflare Pages

Latest commit: f3cee3c
Status: ✅  Deploy successful!
Preview URL: https://1fcef7b8.react-native-youtube-bridge-example.pages.dev
Branch Preview URL: https://docs-improve-readme.react-native-youtube-bridge-example.pages.dev

View logs

@saseungmin saseungmin merged commit 612c1cd into main Jun 24, 2025
5 of 6 checks passed
@saseungmin saseungmin deleted the docs/improve-readme branch June 24, 2025 01:29
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (8)
packages/web/README-ko_kr.md (1)

15-35: Add missing import & sample source to usage snippet

Newcomers may copy-paste this code verbatim.
Without import { YoutubePlayer } and a concrete source example the snippet will not compile, lowering doc quality.

 function App() {
   return (
     <>
       {/* 방법 1: 인라인 HTML 사용 (기본값) */}
-      <YoutubePlayer
+      <YoutubePlayer
+        // import 필요:
+        // import { YoutubePlayer } from 'react-native-youtube-bridge';
         source={source}
         useInlineHtml
       />

Consider adding either:

import { YoutubePlayer } from 'react-native-youtube-bridge';
const source = { videoId: 'dQw4w9WgXcQ' };

directly above the example.

packages/react-native-youtube-bridge/README-ko_kr.md (2)

241-245: Wrap bare URL to silence markdown-lint MD034

Markdown-lint flags bare URLs; wrapping with angle brackets keeps the rendered output identical while fixing the warning.

-   - 기본 URI는 https://react-native-youtube-bridge.pages.dev 입니다.
+   - 기본 URI는 <https://react-native-youtube-bridge.pages.dev> 입니다.

269-284: Use a proper heading instead of bold text (MD036)

markdownlint reports “Emphasis used instead of a heading”.
Convert the bold line to an H4 so it participates in the TOC.

-**커스텀 플레이어 페이지**
+#### 커스텀 플레이어 페이지
packages/react-native-youtube-bridge/README.md (2)

243-245: Replace bare URL with angle-bracket form

Same MD034 warning as in the Korean doc.

-   - The default URI is https://react-native-youtube-bridge.pages.dev.
+   - The default URI is <https://react-native-youtube-bridge.pages.dev>.

269-284: Promote bold text to a real heading

Consistent with the Korean README and to satisfy MD036.

-**Custom Player Page**
+#### Custom Player Page
packages/web/README.md (3)

1-1: Capitalize “YouTube” for brand consistency

The project name is spelled “YouTube” elsewhere in the repo & README.
Recommend updating the heading to keep branding consistent.

-# React Native Youtube Bridge Web
+# React Native YouTube Bridge Web

15-35: Make the usage snippet self-contained

The example omits the import for YoutubePlayer, and source is undefined, which may confuse readers copying it verbatim.

+import { YoutubePlayer } from 'react-native-youtube-bridge'; // or the correct path
+
 function App() {
   const source = { videoId: 'dQw4w9WgXcQ' }; // demo
   return (
     <>
       {/* Method 1: Using inline HTML (default) */}
       <YoutubePlayer
         source={source}
         useInlineHtml
       />
       
       {/* Method 2: Using external WebView page */}
       <YoutubePlayer
         source={source}
         useInlineHtml={false}
         // Default: https://react-native-youtube-bridge.pages.dev
         webViewUrl="https://your-custom-player.com"
       />
     </>
   )
 }

37-40: Tweak repetitive wording & clarify build step

Sentence 37–40 repeats “default static site” phrasing and assumes readers know how to “build” a custom page.
Consider:

The default external URL is https://react-native-youtube-bridge.pages.dev.
If you’d prefer your own player page, build and host a page generated with @react-native-youtube-bridge/web, then pass its URL via webViewUrl.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6f802cc and f3cee3c.

📒 Files selected for processing (7)
  • babel.config.js (0 hunks)
  • packages/react-native-youtube-bridge/LICENSE (1 hunks)
  • packages/react-native-youtube-bridge/README-ko_kr.md (2 hunks)
  • packages/react-native-youtube-bridge/README.md (2 hunks)
  • packages/web/LICENSE (1 hunks)
  • packages/web/README-ko_kr.md (1 hunks)
  • packages/web/README.md (1 hunks)
💤 Files with no reviewable changes (1)
  • babel.config.js
🧰 Additional context used
🪛 LanguageTool
packages/web/README.md

[style] ~39-~39: You have already used this phrasing in nearby sentences. Consider replacing it to add variety to your writing.
Context: ...ed as the external WebView URL. If you want to use your own custom player page, simply...

(REP_WANT_TO_VB)

🪛 markdownlint-cli2 (0.17.2)
packages/react-native-youtube-bridge/README.md

243-243: Bare URL used
null

(MD034, no-bare-urls)


269-269: Emphasis used instead of a heading
null

(MD036, no-emphasis-as-heading)

🔇 Additional comments (3)
packages/web/LICENSE (1)

1-21: MIT license addition looks good

The full MIT text is present, including copyright and disclaimer sections.
No further action required.

packages/react-native-youtube-bridge/LICENSE (1)

1-21: License file is correct and consistent

Identical MIT license text is added for the RN package, keeping licensing consistent across workspaces.
No issues spotted.

packages/web/README.md (1)

69-71: Verify CONTRIBUTING path validity

./CONTRIBUTING.md resolves relative to packages/web, but the contributing guide may live at repository root. Broken links frustrate readers.

Please confirm the file exists at that relative path or update the link to the correct location.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants