This repository was archived by the owner on Feb 25, 2020. It is now read-only.
Commit 2220252
fix: navigation drawer sometimes not closing when pressed outside (#126)
I noticed this issue only on android devices.
After many rewrites of this component I ended up with this simple change and now drawer is closing properly every time.
Most important part is to set new state inside function with
state: (s: Animated.Value<number>) => set(this.gestureState, s)
because I was also experiencing some issues when setting it like this
state: this.gestureState1 parent 5aca552 commit 2220252
1 file changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
431 | | - | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
432 | 439 | | |
433 | 440 | | |
434 | 441 | | |
| |||
520 | 527 | | |
521 | 528 | | |
522 | 529 | | |
523 | | - | |
| 530 | + | |
524 | 531 | | |
525 | 532 | | |
526 | 533 | | |
| |||
0 commit comments