Commit 83754e0
authored
fix: Support react-native-gesture-handler 3.x types (#553)
`ActiveItemPortal`'s `gesture` prop used the `ManualGesture` type, which
`react-native-gesture-handler` 3.x no longer exports (it became
`LegacyManualGesture`).
Switched it to `GestureType`, which is exported by both 2.x and 3.x and
matches the type already used by `ItemContextType.gesture` (where this
prop is forwarded). This keeps the library's types resolvable on
gesture-handler 2.x **and** 3.x under the existing `>=2.0.0` peer range.
Type-only change — no runtime behavior change.1 parent c83b016 commit 83754e0
1 file changed
Lines changed: 2 additions & 2 deletions
File tree
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
0 commit comments