Skip to content

Commit 68c31bb

Browse files
committed
docs
1 parent c4b49ec commit 68c31bb

2 files changed

Lines changed: 15 additions & 13 deletions

File tree

packages/docs-gesture-handler/docs/fundamentals/gesture-detector.mdx

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -219,16 +219,3 @@ enableContextMenu: boolean;
219219
```
220220

221221
Specifies whether the context menu should be enabled after clicking on the underlying view with the right mouse button. Default value is set to `false`.
222-
223-
<HeaderWithBadges platforms={['ios', 'android']}>
224-
### preventRecognizers
225-
</HeaderWithBadges>
226-
227-
```ts
228-
preventRecognizers?: boolean;
229-
```
230-
231-
Controls whether activating a Gesture Handler recognizer should cancel React Native JS responders.
232-
233-
- `true` (default): keeps current behavior where RN touch handlers are cancelled after Gesture Handler activates.
234-
- `false`: disables this cancellation, so Gesture Handler callbacks and RN responder callbacks can run at the same time.

packages/docs-gesture-handler/docs/gestures/_shared/base-gesture-config.mdx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,3 +148,18 @@ activeCursor: ActiveCursor | SharedValue<ActiveCursor>;
148148
```
149149

150150
This parameter allows specifying which cursor should be used when the gesture activates. Supports all [CSS cursor values](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/cursor#keyword) (e.g. `"grab"`, `"zoom-in"`). Default value is set to `"auto"`.
151+
152+
<HeaderWithBadges platforms={['ios', 'android']}>
153+
### preventRecognizers
154+
</HeaderWithBadges>
155+
156+
```ts
157+
preventRecognizers?: boolean;
158+
```
159+
160+
Controls whether activating a Gesture Handler recognizer should cancel React Native JS responders.
161+
162+
This option is configured per gesture handler (for example in `usePanGesture({ preventRecognizers: ... })`).
163+
164+
- `true` (default): when this gesture activates, it cancels React Native JS responders in the same root view.
165+
- `false`: disables that cancellation, so Gesture Handler callbacks and RN responder callbacks can run at the same time.

0 commit comments

Comments
 (0)