Skip to content

Commit 8b23af9

Browse files
authored
Remove Reanimated 2 version from the docs (#3183)
## Description Removes explicit Reanimated 2 references - the library also works with Rea 3
1 parent 1bf7e39 commit 8b23af9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/fundamentals/introduction.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ In a nutshell, the library provides:
1818
- Mechanisms to use touchables that run in native thread and follow platform default behavior; e.g. in the event they are in a scrollable component, turning into pressed state is slightly delayed to prevent it from highlighting when you fling.
1919

2020
:::info
21-
It is recommended to use Reanimated 2 for animations when using React Native Gesture Handler as its more advanced features rely heavily on the worklets provided by Reanimated.
21+
It is recommended to use Reanimated for animations when using React Native Gesture Handler as its more advanced features rely heavily on the worklets provided by Reanimated.
2222
:::
2323

2424
## RNGH 2.0
2525

26-
RNGH2 introduces a new way of creating gestures. Instead of creating a gesture handler component for every gesture you want to create, you just need to create a `GestureDetector` component and assign to it all the gestures you want it to recognize. It is also designed to work seamlessly with `Reanimated 2` and it will automatically detect if it is installed, and start using it if it is.
26+
RNGH2 introduces a new way of creating gestures. Instead of creating a gesture handler component for every gesture you want to create, you just need to create a `GestureDetector` component and assign to it all the gestures you want it to recognize. It is also designed to work seamlessly with `Reanimated` and it will automatically detect if it is installed, and start using it if it is.
2727
You can create gestures using the `Gesture` object and methods it provides, and configure them in the builder-like pattern. If you want to specify behavior between the gestures instead of using `waitFor` and `simultaneousGestures` you can use the new system of [gesture composition](/docs/fundamentals/gesture-composition).
2828
Along the new API, version 2.0 brings one of the most requested features: [touch events and manual gestures](/docs/fundamentals/manual-gestures). Thanks to great work done by the Reanimated team, we were able to provide synchronous communication between gestures and their native implementation using worklets. This allows to manage gesture state from the JS without risking race-conditions.
2929

0 commit comments

Comments
 (0)