Commit 6c7481b
authored
Hide incorrectly exposed
## Description
As stated in [this comment](#3670 (comment)), some of the `ReanimatedSwipeable` props were incorrectly exposed. Most of them came from `BaseGestureHandlerProps`, but were not actually used in the implementation.
I've updated `SwipeableProps` type to include only those that were actually used.
I've also moved `hitSlop` from `Animated.View` to `Pan` gesture - it seems that it worked on `iOS`, but not on `android`.
Closes #3670
## Test plan
Tested on the **"Swipeable reanimation"** example with `hitSlop={-20}` added.ReanimatedSwipeable props. (#3820)1 parent cbd97db commit 6c7481b
2 files changed
Lines changed: 24 additions & 9 deletions
File tree
- packages/react-native-gesture-handler/src/components/ReanimatedSwipeable
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
501 | 501 | | |
502 | 502 | | |
503 | 503 | | |
| 504 | + | |
504 | 505 | | |
505 | 506 | | |
506 | 507 | | |
| |||
547 | 548 | | |
548 | 549 | | |
549 | 550 | | |
| 551 | + | |
550 | 552 | | |
551 | 553 | | |
552 | 554 | | |
| |||
576 | 578 | | |
577 | 579 | | |
578 | 580 | | |
579 | | - | |
580 | 581 | | |
581 | 582 | | |
582 | 583 | | |
| |||
Lines changed: 22 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 5 | + | |
11 | 6 | | |
12 | 7 | | |
13 | 8 | | |
14 | 9 | | |
15 | 10 | | |
16 | 11 | | |
17 | | - | |
18 | | - | |
| 12 | + | |
19 | 13 | | |
20 | 14 | | |
21 | 15 | | |
22 | 16 | | |
23 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
24 | 38 | | |
25 | 39 | | |
26 | 40 | | |
| |||
0 commit comments