Skip to content

[docs] Add "Wrapped components" section#4119

Merged
m-bert merged 6 commits intomainfrom
@mbert/docs-components
May 7, 2026
Merged

[docs] Add "Wrapped components" section#4119
m-bert merged 6 commits intomainfrom
@mbert/docs-components

Conversation

@m-bert
Copy link
Copy Markdown
Collaborator

@m-bert m-bert commented Apr 24, 2026

Description

Our library expose components like ScrollView, which were never mentioned in the docs. This proved to be confusing for users, so I've added section that lists exported component, and uses Switch as an example of why we export them.

Test plan

Read docs 🤓

Copilot AI review requested due to automatic review settings April 24, 2026 12:36
Copy link
Copy Markdown
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

Adds documentation to explain which React Native core components are re-exported (“wrapped”) by RNGH with a pre-applied Native gesture, including an Android Switch example and a note about the onGestureUpdate_CAN_CAUSE_INFINITE_RERENDER prop.

Changes:

  • Introduces a new “Wrapped Components” docs page with an example comparing react-native Switch vs RNGH Switch.
  • Documents the list of wrapped core components (FlatList, ScrollView, RefreshControl, TextInput, Switch).
  • Documents the extra onGestureUpdate_CAN_CAUSE_INFINITE_RERENDER prop and links to an in-repo usage reference.

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

Comment thread packages/docs-gesture-handler/docs/components/wrapped-components.mdx Outdated
Comment thread packages/docs-gesture-handler/docs/components/wrapped-components.mdx Outdated
Comment thread packages/docs-gesture-handler/docs/components/wrapped-components.mdx Outdated
@m-bert m-bert requested a review from j-piasecki April 28, 2026 09:48
@m-bert m-bert requested a review from j-piasecki May 7, 2026 10:54
@m-bert m-bert merged commit 46734a3 into main May 7, 2026
1 check passed
@m-bert m-bert deleted the @mbert/docs-components branch May 7, 2026 11:18
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.

3 participants