Skip to content

[Docs] Mention shouldCancelWhenOutside default in Native on Android#4242

Merged
m-bert merged 7 commits into
mainfrom
@mbert/docs-native-android
Jun 8, 2026
Merged

[Docs] Mention shouldCancelWhenOutside default in Native on Android#4242
m-bert merged 7 commits into
mainfrom
@mbert/docs-native-android

Conversation

@m-bert
Copy link
Copy Markdown
Collaborator

@m-bert m-bert commented Jun 8, 2026

Description

Our docs incorrectly stated that onlu LongPress and Tap use shouldCancelWhenOutside set to true by default. This is also the case for Native gesture on Android.

I've also changed some of the legacy pages to symlinks, seems that it has been missed in previous PRs. If there were any differences (checked with diff tool), I've copied newer content from legacy-gestures and then created symlink.

Test plan

Read docs 🤓

Copilot AI review requested due to automatic review settings June 8, 2026 08:27
@m-bert m-bert added the Documentation Documentation change/enhancement label Jun 8, 2026
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

This PR updates the Gesture Handler documentation to correct the stated default for shouldCancelWhenOutside, clarifying that Native gestures (at least on Android) default to true, and it also performs some cleanup/formatting on shared 2.x docs fragments.

Changes:

  • Update shouldCancelWhenOutside default documentation to include Native (Android) alongside LongPress and Tap.
  • Reformat/normalize wording and punctuation across shared “base gesture” 2.x doc fragments.
  • Adjust pointer type enum bullet formatting in the shared event data docs.

Reviewed changes

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

Show a summary per file
File Description
packages/docs-gesture-handler/versioned_docs/version-2.x/gestures/_shared/base-gesture-event-data.md Formatting updates to the PointerType enum list.
packages/docs-gesture-handler/versioned_docs/version-2.x/gestures/_shared/base-gesture-config.md Updates shared config docs (including shouldCancelWhenOutside defaults).
packages/docs-gesture-handler/versioned_docs/version-2.x/gestures/_shared/base-gesture-callbacks.md Minor wording edits in shared callback descriptions.
packages/docs-gesture-handler/versioned_docs/version-2.x/gestures/_shared/base-continuous-gesture-config.md Minor punctuation/grammar tweak in continuous gesture config docs.
packages/docs-gesture-handler/docs/gestures/_shared/base-gesture-config.mdx Updates current (unversioned) shared config docs to mention Native default behavior.

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

Comment thread packages/docs-gesture-handler/docs/gestures/_shared/base-gesture-config.mdx Outdated
m-bert and others added 4 commits June 8, 2026 10:34
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…ion/react-native-gesture-handler into @mbert/docs-native-android
@m-bert m-bert requested a review from j-piasecki June 8, 2026 08:38
@m-bert m-bert merged commit f417709 into main Jun 8, 2026
1 check passed
@m-bert m-bert deleted the @mbert/docs-native-android branch June 8, 2026 08:50
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.

3 participants