Skip to content

Commit 1df76a5

Browse files
authored
[docs] Update links to Gesture Handler docs (#8962)
## 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](software-mansion/react-native-gesture-handler#3976). However, we still need to update some links in Reanimated. ## Test plan Check links in docs.
1 parent c48478f commit 1df76a5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/docs-reanimated/docs/fundamentals/handling-gestures.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Let's start with the simplest gesture - tapping. Tap gesture detects fingers tou
1616

1717
In this example, we'll create a circle that will grow and change color on touch.
1818

19-
First, let's wrap our app with [`GestureHandlerRootView`](https://docs.swmansion.com/react-native-gesture-handler/docs/fundamentals/installation/#js). Make sure to keep the `GestureHandlerRootView` as close to the actual root view as possible. That'll ensure that our gestures will work as expected with each other.
19+
First, let's wrap our app with [`GestureHandlerRootView`](https://docs.swmansion.com/react-native-gesture-handler/docs/fundamentals/root-view). Make sure to keep the `GestureHandlerRootView` as close to the actual root view as possible. That'll ensure that our gestures will work as expected with each other.
2020

2121
```jsx
2222
import { GestureHandlerRootView } from 'react-native-gesture-handler';
@@ -43,15 +43,15 @@ We'd like our circle to change color from violet to yellow and smoothly scale by
4343

4444
<CollapsibleCode showLines={[27, 30]} src={TapGestureSrc}/>
4545

46-
You need to pass your defined gesture to the `gesture` prop of the [`GestureDetector`](https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/gesture-detector) component. That component should wrap the view you'd like to handle gestures on. Also, remember to pass the defined `animatedStyles` to the view you want to animate like so:
46+
You need to pass your defined gesture to the `gesture` prop of the [`GestureDetector`](https://docs.swmansion.com/react-native-gesture-handler/docs/legacy-gestures/gesture-detector) component. That component should wrap the view you'd like to handle gestures on. Also, remember to pass the defined `animatedStyles` to the view you want to animate like so:
4747

4848
<CollapsibleCode showLines={[32, 43]} src={TapGestureSrc}/>
4949

5050
And that's it! Pretty straightforward, isn't it? Let's see it in its full glory in an interactive example:
5151

5252
<InteractiveExample src={TapGestureSrc} component={TapGesture} label="Tap the circle"/>
5353

54-
You can make use of [composing gestures](https://docs.swmansion.com/react-native-gesture-handler/docs/fundamentals/gesture-composition/) to more complex behaviors. But what if we'd like to create something a bit more interesting?
54+
You can make use of [composing gestures](https://docs.swmansion.com/react-native-gesture-handler/docs/legacy-gestures/gesture-composition/) to more complex behaviors. But what if we'd like to create something a bit more interesting?
5555

5656
## Handling pan gestures
5757

0 commit comments

Comments
 (0)