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
The `GestureDetector` is a key component of RNGH3. It supports gestures created either using the hooks API or the builder pattern. Additionally, it allows for the recognition of multiple gestures through [gesture composition](/docs/fundamentals/gesture-composition). `GestureDetector` interacts closely with [`Reanimated`](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/getting-started/). For more details, refer to the [Integration with Reanimated](/docs/fundamentals/reanimated-interactions) section.
@@ -49,7 +52,19 @@ In RNGH3, `GestureDetector` is a standalone host component. Depending on your vi
49
52
50
53
`VirtualGestureDetector` is similar to the `GestureDetector` from RNGH2. Because it is not a host component, it does not interfere with the host view hierarchy. This allows you to attach gestures without disrupting functionality that depends on it.
51
54
52
-
```js
55
+
### Known use cases
56
+
57
+
Here are some of the most common use cases for virtual gesture detectors.
58
+
59
+
#### SVG
60
+
61
+
You can combine `VirtualGestureDetector` with `react-native-svg` to add gesture handling to individual SVG elements.
0 commit comments