Commit 9f0a521
authored
ReanimatedDrawerLayout: fix buttons not receiving onPress (#3832)
## Description
When using ReanimatedDrawerLayout, none of the
react-native-gesture-handler buttons respond to taps because of the
`overlayDismissGesture`. The gesture is activated even when the Drawer
is closed.
By passing in `drawerOpened`, a state variable already enabled into
`overlayDismissGesture` the problem is fixed and the drawer continues
working as-is.
## Test plan
In my own app, I added `drawerOpened` into `overlayDismissGesture` and
was able to successfully fix the problem.1 parent 3f13c2a commit 9f0a521
File tree
1 file changed
+2
-1
lines changed- packages/react-native-gesture-handler/src/components
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
| 503 | + | |
503 | 504 | | |
504 | 505 | | |
505 | 506 | | |
| |||
509 | 510 | | |
510 | 511 | | |
511 | 512 | | |
512 | | - | |
| 513 | + | |
513 | 514 | | |
514 | 515 | | |
515 | 516 | | |
| |||
0 commit comments