Commit 2c0277a
authored
Revert "Change direction type" (#3876)
This reverts commit 3d5e298.
## Description
I have overlooked that result of using bitwise `OR` operator on
`Directions` is of type `number`. This caused CI to
[fail](https://github.com/software-mansion/react-native-gesture-handler/actions/runs/20177351781/job/57928739635#step:5:1).
Also, now I see that it didn't cover all cases, so reverting it makes
sense.
## Test plan
```tsx
const fling = useFlingGesture({
direction: Directions.RIGHT | Directions.LEFT,
});
```1 parent bfa97c8 commit 2c0277a
File tree
2 files changed
+2
-8
lines changed- packages/react-native-gesture-handler/src/v3/hooks/gestures/fling
2 files changed
+2
-8
lines changedLines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
| |||
15 | 13 | | |
16 | 14 | | |
17 | 15 | | |
18 | | - | |
| 16 | + | |
19 | 17 | | |
20 | 18 | | |
21 | 19 | | |
| |||
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 20 | + | |
25 | 21 | | |
26 | 22 | | |
27 | 23 | | |
| |||
0 commit comments