Repository navigation
Commit 286b374
authored
Extract
## Description
`HoverEffect` moves from `handlers/gestures/hoverGesture.ts` to a
standalone `src/HoverEffect.ts`, following the naming pattern of the
other root-level shared leaves (`State.ts`, `TouchEventType.ts`). The v3
hover types imported it from the legacy gesture module, pulling the
whole v2 class hierarchy into the v3 import graph for the sake of one
enum.
## Test plan
- `yarn ts-check` clean; `yarn test` green (103 + 3 new); `yarn lint:js`
0 errors
- Verified on iOS simulator (expo-example, fresh bundle): the v3 hover
example — which imports `HoverEffect` from the barrel at module scope
and passes `HoverEffect.LIFT` as a config value — mounts and renders
cleanlyHoverEffect to a standalone module (#4379)1 parent ae8e704 commit 286b374
4 files changed
Lines changed: 8 additions & 8 deletions
File tree
- packages/react-native-gesture-handler/src
- handlers/gestures
- v3/hooks/gestures/hover
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | 12 | | |
18 | 13 | | |
19 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
131 | 130 | | |
132 | 131 | | |
133 | 132 | | |
| |||
148 | 147 | | |
149 | 148 | | |
150 | 149 | | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
0 commit comments