Skip to content

Commit

Permalink
Remove Reanimated 2 version from the docs (#3183)
Browse files Browse the repository at this point in the history
## Description

Removes explicit Reanimated 2 references - the library also works with
Rea 3
  • Loading branch information
j-piasecki authored Oct 25, 2024
1 parent 1bf7e39 commit 8b23af9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/fundamentals/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ In a nutshell, the library provides:
- 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.

:::info
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.
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.
:::

## RNGH 2.0

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.
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.
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).
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.

Expand Down

0 comments on commit 8b23af9

Please sign in to comment.