Skip to content

Commit 2b8af0d

Browse files
committed
Add infor about mixing APIs
1 parent 6f73a7e commit 2b8af0d

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

packages/docs-gesture-handler/docs/composition/overview.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ Gesture Handler simplifies gesture interactions through dedicated composition ho
1010
- If **yes** — use [composition hooks](#composition-hooks). These allow you to bundle multiple gestures — including previously composed ones — into a single object for a [`GestureDetector`](/docs/core-components/gesture-detectors).
1111
- If **no** — use [relation properties](#cross-component-interactions) to manually define how gestures interact. Since these properties also support composed gestures, you can mix both methods for more complex layouts.
1212

13+
:::danger
14+
Gesture relations cannot be set between hook-based API and previous APIs.
15+
:::
16+
1317
## Composition hooks
1418

1519
- [`useCompetingGestures`](/docs/composition/use-competing-gestures) — only one of the provided gestures can become active at the same time. The first gesture to activate cancels the rest.

packages/docs-gesture-handler/docs/guides/upgrading-to-3.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ code2={
174174

175175
## Migrating relations
176176

177+
:::danger
178+
Gesture relations cannot be set between hook-based API and previous APIs.
179+
:::
180+
177181
### Composed gestures
178182

179183
Previously, composed gestures were created using `Gesture` object. In Gesture Handler 3, relations are set up using relation hooks.

0 commit comments

Comments
 (0)