You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[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.
Copy file name to clipboardExpand all lines: docs/docs-reanimated/docs/fundamentals/handling-gestures.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ Let's start with the simplest gesture - tapping. Tap gesture detects fingers tou
16
16
17
17
In this example, we'll create a circle that will grow and change color on touch.
18
18
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.
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:
And that's it! Pretty straightforward, isn't it? Let's see it in its full glory in an interactive example:
51
51
52
52
<InteractiveExamplesrc={TapGestureSrc}component={TapGesture}label="Tap the circle"/>
53
53
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?
0 commit comments