Skip to content

[docs] Update links to Gesture Handler docs#8962

Open
m-bert wants to merge 1 commit intomainfrom
@mbert/update-gesture-handler-docs
Open

[docs] Update links to Gesture Handler docs#8962
m-bert wants to merge 1 commit intomainfrom
@mbert/update-gesture-handler-docs

Conversation

@m-bert
Copy link
Contributor

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

Summary

After releasing beta version of Gesture Handler 3, some of the links in documentation have changed and referencing old ones results in 404. This has been partially solved on our side with redirects and legacy section. However, we still need to update some links in Reanimated, as our docs here use anchors, which are not supported by redirects.

Test plan

Check links in docs.

@m-bert m-bert marked this pull request as ready for review February 13, 2026 15:55
<CollapsibleCode showLines={[17, 33]} src={PanGestureSrc} />

The callback passed to `onChange` comes with some [event data](https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/pan-gesture#event-data) that has a bunch of handy properties. One of them is `translationX` which indicates how much the object has moved on the X axis. We stored that in a shared value to move the circle accordingly. To make the circle come back to its initial place all you have to do is to reset the `offset.value` in the `onFinalize` method. We can use `withSpring` or `withTiming` functions to make it come back with an animation.
The callback passed to `onChange` comes with some [event data](https://docs.swmansion.com/react-native-gesture-handler/docs/legacy-gestures/pan-gesture#event-data) that has a bunch of handy properties. One of them is `translationX` which indicates how much the object has moved on the X axis. We stored that in a shared value to move the circle accordingly. To make the circle come back to its initial place all you have to do is to reset the `offset.value` in the `onFinalize` method. We can use `withSpring` or `withTiming` functions to make it come back with an animation.
Copy link
Member

Choose a reason for hiding this comment

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

This link doesn't work for me

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For now it won't work, as PR that adds legacy section has not yet been merged on Gesture Handler side 😅

Happy Valentines day 💞

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For now it won't work, as PR that adds legacy section has not yet been merged on Gesture Handler side 😅

Happy Valentines day 💞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants