[docs] Rename callback and update migration guide#3951
Merged
Conversation
j-piasecki
approved these changes
Feb 4, 2026
|
|
||
| ### onChange | ||
|
|
||
| We decided to simplify API by removing `onChange` callback. You can now access `change*` properties in `onUpdate` callback. |
Member
There was a problem hiding this comment.
Suggested change
| We decided to simplify API by removing `onChange` callback. You can now access `change*` properties in `onUpdate` callback. | |
| `onChange` callback has been removed, and its functionality integrated into `onUpdate`. You can now access `change*` properties in `onUpdate` callback. |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the documentation to reflect API changes in Gesture Handler 3, specifically renaming the onTouchesCancelled callback to onTouchesCancel and adding comprehensive migration guidance for removed features.
Changes:
- Renames
onTouchesCancelledtoonTouchesCancelacross v3 documentation to match the v3 API implementation - Adds migration guide sections explaining the removal of
onChangecallback,state/oldStateproperties, and the unification of event types
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
packages/docs-gesture-handler/src/examples/CallbacksFlowCharts/TouchEventChart.jsx |
Updates callback name in the touch event flow chart |
packages/docs-gesture-handler/docs/guides/upgrading-to-3.mdx |
Adds three new sections documenting removed onChange callback, removed state properties, and unified event types |
packages/docs-gesture-handler/docs/gestures/use-manual-gesture.mdx |
Updates callback reference in manual gesture tutorial |
packages/docs-gesture-handler/docs/fundamentals/callbacks-events.mdx |
Updates callback name and signature in API reference |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
akwasniewski
approved these changes
Feb 4, 2026
Collaborator
Author
|
I've also noticed that I have not added |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR does two things:
onTouchesCancelledcallback toonTouchesCancel2.1. Added information that
onChangewas removed2.2. Added information about removed
state,oldState2.3. Added information about unified callback events types.
Test plan
Read docs 🤓