Repository navigation
Commit ed9410d
authored
Fix ReanimatedDrawerLayout animation speed after rerender (#4470)
## Description
Fixes #4469.
`ReanimatedDrawerLayout` memoized `animateDrawer` without
`animationSpeedProp`, so changing the prop did not affect later
programmatic `openDrawer()` or `closeDrawer()` calls. The callback now
tracks the prop and the imperative methods receive the latest default
spring speed after a rerender.
## Test plan
- `yarn workspace react-native-gesture-handler test --runInBand` — 159
tests passed
- `yarn workspace react-native-gesture-handler ts-check`
- `yarn workspace react-native-gesture-handler lint-js` — no errors
(existing warnings remain)
- `yarn workspace react-native-gesture-handler build`1 parent 0d25288 commit ed9410d
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
| 444 | + | |
444 | 445 | | |
445 | 446 | | |
446 | 447 | | |
| |||
0 commit comments