Skip to content

Conversation

@saseungmin
Copy link
Owner

@saseungmin saseungmin commented Aug 5, 2025

Summary by CodeRabbit

  • Documentation
    • Migrated detailed documentation from the README to a dedicated documentation website, now linked in the project.
    • Streamlined both English and Korean READMEs to provide a concise overview, key features, and quick start links, removing detailed setup and API sections.
    • Enhanced quick start examples in documentation to showcase advanced usage with interactive controls and event handling.
    • Updated project homepage link to point to the new documentation site.

- Move detailed documentation from README to dedicated docs site
- Update package.json homepage field to point to new docs URL
- Full documentation is available at: https://react-native-gesture-image-viewer.pages.dev
@changeset-bot
Copy link

changeset-bot bot commented Aug 5, 2025

🦋 Changeset detected

Latest commit: 43d95af

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

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

@coderabbitai
Copy link

coderabbitai bot commented Aug 5, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

This update migrates detailed documentation from the README files to a dedicated documentation website, updating all references and example usages to point to the new site. The README files in both English and Korean are condensed, focusing on quick start links and minimal examples, while the package homepage now points to the new documentation URL.

Changes

Cohort / File(s) Change Summary
README Streamlining (EN & KO)
README.md, README-ko_kr.md
Both README files were significantly condensed, removing detailed installation, setup, and API documentation. They now feature a centered logo, concise key features, quick start links to the new documentation site, and a simplified usage example using new controller and event hooks. The Korean README mirrors these changes in structure and content.
Documentation Example Enhancement
docs/docs/en/guide/getting-started/quick-start.mdx, docs/docs/ko/guide/getting-started/quick-start.mdx
The "Quick Start" documentation examples in both English and Korean were updated to demonstrate advanced usage, including new controller and event hooks, navigation controls, and zoom event handling. The UI in the examples now includes navigation buttons and a display for the current image index, providing a more interactive demonstration.
Homepage & Metadata Update
package.json, .changeset/silver-states-serve.md
The package.json homepage field was updated to the new documentation site URL. The changeset file documents this migration and homepage update, confirming that no public API or exported code entities were altered.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant README
    participant Documentation Site

    User->>README: Visit README on GitHub
    README->>User: Show brief intro, key features, quick start link
    User->>Documentation Site: Click link to full documentation
    Documentation Site->>User: Provide detailed setup, API, and examples
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

Suggested labels

documentation, size/M

Poem

🐇✨
The docs have hopped to pastures new,
Where guides and code are clear to view.
The README’s light, the site’s robust,
For learning fast, in docs we trust!
Buttons to click, examples to see—
A rabbit’s guide for you and me!
📚🌱

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.


📜 Recent review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 4babb30 and 43d95af.

📒 Files selected for processing (1)
  • README.md (1 hunks)
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch docs/readme

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 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.
  • 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.

Support

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

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 generate unit tests to generate unit tests for 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

cloudflare-workers-and-pages bot commented Aug 5, 2025

Deploying react-native-gesture-image-viewer with  Cloudflare Pages  Cloudflare Pages

Latest commit: 43d95af
Status: ✅  Deploy successful!
Preview URL: https://d1358dd3.react-native-gesture-image-viewer.pages.dev
Branch Preview URL: https://docs-readme.react-native-gesture-image-viewer.pages.dev

View logs

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: 4

🧹 Nitpick comments (8)
.changeset/silver-states-serve.md (1)

5-8: Wrap bare URL to satisfy Markdown lint rule (MD034).

markdownlint-cli2 flagged the naked URL on Line 8.
Enclose it in angle brackets or convert it to a Markdown link to silence the linter and keep formatting consistent.

- - Full documentation is available at: https://react-native-gesture-image-viewer.pages.dev
+ - Full documentation is available at: <https://react-native-gesture-image-viewer.pages.dev>
docs/docs/en/guide/getting-started/quick-start.mdx (1)

56-61: Optional: Clarify layout of navigation controls.

With no styling the buttons/text will stack vertically and may cover the image.
Consider adding a horizontal flexDirection: 'row' style or wrap in a separate snippet comment so newcomers get a cleaner UI.
Example:

<View style={{ flexDirection: 'row', gap: 8, alignItems: 'center' }}></View>
docs/docs/ko/guide/getting-started/quick-start.mdx (1)

46-51: 네비게이션 버튼 레이아웃 개선 제안.

스타일이 없으면 버튼/텍스트가 세로로 쌓여 이미지 위를 가릴 수 있습니다.
간단한 flexDirection: 'row' 스타일 예시를 주석으로 추가하면 이해가 쉬워집니다.

README.md (3)

5-7: Add alt text for accessibility (MD045).

Both images lack an alt attribute. Supply short descriptive text.

-  <img src="/assets/logo.png" width="400px" /> 
+  <img src="/assets/logo.png" width="400px" alt="React Native Gesture Image Viewer logo" />

15-17: Second image also missing alt text.

-  <img src="./assets/example.gif" width="600" />
+  <img src="./assets/example.gif" width="600" alt="Gesture and zoom demo" />

74-79: Minor UI polish suggestion for example layout.

Add flexDirection: 'row' or similar styling to avoid vertical stacking of controls in copied examples.

README-ko_kr.md (2)

5-7: Add descriptive alt text for accessibility compliance

Both the logo image (Line 6) and the animated GIF further down the document currently omit the alt attribute, violating WCAG and triggering markdownlint rule MD045. Screen-reader users will not get any context for these visuals.

-  <img src="/assets/logo.png" width="400px" /> 
+  <img src="/assets/logo.png" width="400px" alt="React Native Gesture Image Viewer logo" />

Please apply the same fix to the example GIF at Line 16.


35-35: Wrap bare URL in Markdown link syntax

Line 35 contains a naked URL, flagged by markdownlint rule MD034. Rendering engines may not auto-link it, and it breaks consistency with the rest of the document.

-전체 문서는 https://react-native-gesture-image-viewer.pages.dev 에서 확인할 수 있습니다.
+전체 문서는 <https://react-native-gesture-image-viewer.pages.dev> 에서 확인할 수 있습니다.
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 81c06b8 and 3d0cb90.

⛔ Files ignored due to path filters (1)
  • assets/logo.png is excluded by !**/*.png
📒 Files selected for processing (6)
  • .changeset/silver-states-serve.md (1 hunks)
  • README-ko_kr.md (1 hunks)
  • README.md (1 hunks)
  • docs/docs/en/guide/getting-started/quick-start.mdx (2 hunks)
  • docs/docs/ko/guide/getting-started/quick-start.mdx (2 hunks)
  • package.json (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: in react native gesture handler, the pinch gesture event.scale always starts from 1.0 at the beginni...
Learnt from: saseungmin
PR: saseungmin/react-native-gesture-image-viewer#4
File: src/useGestureImageViewer.ts:184-207
Timestamp: 2025-07-02T17:37:07.501Z
Learning: In React Native Gesture Handler, the pinch gesture event.scale always starts from 1.0 at the beginning of each new pinch gesture and is relative/multiplicative, not absolute. To maintain smooth scaling, you need to multiply the current scale by event.scale rather than directly assigning it.

Applied to files:

  • docs/docs/ko/guide/getting-started/quick-start.mdx
  • docs/docs/en/guide/getting-started/quick-start.mdx
  • README.md
🪛 markdownlint-cli2 (0.17.2)
.changeset/silver-states-serve.md

8-8: Bare URL used

(MD034, no-bare-urls)

README.md

6-6: Images should have alternate text (alt text)

(MD045, no-alt-text)


16-16: Images should have alternate text (alt text)

(MD045, no-alt-text)


35-35: Bare URL used

(MD034, no-bare-urls)


37-37: Multiple spaces after hash on atx style heading

(MD019, no-multiple-space-atx)

README-ko_kr.md

6-6: Images should have alternate text (alt text)

(MD045, no-alt-text)


16-16: Images should have alternate text (alt text)

(MD045, no-alt-text)


35-35: Bare URL used

(MD034, no-bare-urls)

🔇 Additional comments (1)
package.json (1)

77-77: Confirm homepage DNS / HTTPS redirects.

The new homepage URL looks good. Double-check that:

  1. https://react-native-gesture-image-viewer.pages.dev/ (trailing slash) correctly redirects or serves identical content.
  2. Any badges (npm, GitHub, etc.) in documentation still resolve after this change.

No action required if both conditions are met.

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 (2)
docs/docs/en/guide/getting-started/quick-start.mdx (1)

56-61: Add accessibility labels for navigation buttons.
Using < / > as title values is not descriptive for screen-reader users. Consider adding accessibilityLabel (or a more descriptive title) so the sample promotes good a11y practices.

-<Button title="<" onPress={goToPrevious} />
+<Button
+  title="<"
+  accessibilityLabel="Previous image"
+  onPress={goToPrevious}
/>
...
-<Button title=">" onPress={goToNext} />
+<Button
+  title=">"
+  accessibilityLabel="Next image"
+  onPress={goToNext}
/>
README.md (1)

37-41: Fix markdown heading spacing (MD019).
### Examples & Demo contains two spaces after the hashes. Single-space keeps the heading valid and silences markdown-lint.

-###  Examples & Demo
+### Examples & Demo
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 3d0cb90 and 4babb30.

📒 Files selected for processing (4)
  • README-ko_kr.md (1 hunks)
  • README.md (1 hunks)
  • docs/docs/en/guide/getting-started/quick-start.mdx (2 hunks)
  • docs/docs/ko/guide/getting-started/quick-start.mdx (2 hunks)
🚧 Files skipped from review as they are similar to previous changes (2)
  • docs/docs/ko/guide/getting-started/quick-start.mdx
  • README-ko_kr.md
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: in react native gesture handler, the pinch gesture event.scale always starts from 1.0 at the beginni...
Learnt from: saseungmin
PR: saseungmin/react-native-gesture-image-viewer#4
File: src/useGestureImageViewer.ts:184-207
Timestamp: 2025-07-02T17:37:07.501Z
Learning: In React Native Gesture Handler, the pinch gesture event.scale always starts from 1.0 at the beginning of each new pinch gesture and is relative/multiplicative, not absolute. To maintain smooth scaling, you need to multiply the current scale by event.scale rather than directly assigning it.

Applied to files:

  • docs/docs/en/guide/getting-started/quick-start.mdx
  • README.md
🪛 markdownlint-cli2 (0.17.2)
README.md

37-37: Multiple spaces after hash on atx style heading

(MD019, no-multiple-space-atx)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Cloudflare Pages
🔇 Additional comments (2)
docs/docs/en/guide/getting-started/quick-start.mdx (1)

30-33: Import list now complete – good catch!
Text was missing in the previous revision and is now included, preventing copy-paste runtime errors in examples.

README.md (1)

48-50: Import list corrected – issue resolved.
Text has been added to the React-Native import, addressing the runtime error noted in earlier reviews.

@saseungmin saseungmin merged commit b8ec554 into main Aug 5, 2025
5 of 6 checks passed
@saseungmin saseungmin deleted the docs/readme branch August 5, 2025 05:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants