Skip to content

Comments

[docs] Remove unused props#3990

Draft
m-bert wants to merge 1 commit intomainfrom
@mbert/docs-props-types
Draft

[docs] Remove unused props#3990
m-bert wants to merge 1 commit intomainfrom
@mbert/docs-props-types

Conversation

@m-bert
Copy link
Contributor

@m-bert m-bert commented Feb 20, 2026

Description

In progress

Test plan

Read docs 🤓

Copilot AI review requested due to automatic review settings February 20, 2026 12:05
@m-bert m-bert added the Documentation Documentation change/enhancement label Feb 20, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the documentation by extracting duplicated mouseButton prop documentation into a reusable shared component and removes this prop from components where it's not actually supported.

Changes:

  • Created a new shared mouse-button.mdx component to consolidate repeated mouseButton documentation
  • Replaced duplicated mouseButton sections in gesture documentation files (tap, pan, long-press, fling) with the shared component
  • Replaced duplicated mouseButton section in reanimated-drawer-layout.mdx with the shared component
  • Removed mouseButton documentation from reanimated_swipeable.mdx as it's an unused/unsupported prop for that component
  • Fixed grammatical error in the description text

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
packages/docs-gesture-handler/docs/gestures/_shared/mouse-button.mdx New shared component containing the mouseButton prop documentation with improved grammar
packages/docs-gesture-handler/docs/gestures/use-tap-gesture.mdx Replaced inline mouseButton documentation with shared component import
packages/docs-gesture-handler/docs/gestures/use-pan-gesture.mdx Replaced inline mouseButton documentation with shared component import
packages/docs-gesture-handler/docs/gestures/use-long-press-gesture.mdx Replaced inline mouseButton documentation with shared component import
packages/docs-gesture-handler/docs/gestures/use-fling-gesture.mdx Replaced inline mouseButton documentation with shared component import
packages/docs-gesture-handler/docs/components/reanimated_swipeable.mdx Removed unsupported mouseButton prop documentation
packages/docs-gesture-handler/docs/components/reanimated-drawer-layout.mdx Replaced inline mouseButton documentation with shared component import

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

### mouseButton
</HeaderWithBadge>

<CollapsibleCode
Copy link

Copilot AI Feb 20, 2026

Choose a reason for hiding this comment

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

The CollapsibleCode component is used on line 7 but is not imported. Add the missing import statement at the top of the file.

Copilot uses AI. Check for mistakes.

import MouseButtonProp from './\_shared/mouse-button.mdx';


Copy link

Copilot AI Feb 20, 2026

Choose a reason for hiding this comment

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

Extra blank line added after the import statement. This appears inconsistent with the import style in other files like use-tap-gesture.mdx and use-pan-gesture.mdx where there's only one blank line between import statements.

Suggested change

Copilot uses AI. Check for mistakes.

import MouseButtonProp from './\_shared/mouse-button.mdx';


Copy link

Copilot AI Feb 20, 2026

Choose a reason for hiding this comment

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

Extra blank line added after the import statement. This appears inconsistent with the import style in other files like use-tap-gesture.mdx and use-pan-gesture.mdx where there's only one blank line between import statements.

Suggested change

Copilot uses AI. Check for mistakes.
Comment on lines +12 to +13


Copy link

Copilot AI Feb 20, 2026

Choose a reason for hiding this comment

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

Extra blank line added after the import statement. This appears inconsistent with the import style in other files like use-tap-gesture.mdx and use-pan-gesture.mdx where there's only one blank line between import statements.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation Documentation change/enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant