Current behavior
On latest version 6.4.1 it becomes impossible to immediately close the drawer by calling closeDrawer().
Here is the snack Drawer lag 6.4.1 taken and edited from the official docs.
I simply deleted useLegacyImplementation and that's all.
Steps:
- Open drawer.
- Try to click the button
Close drawer right after drawer opens.
- It won't close unless a couple of secs later
Interesting that if you use version 6.3.0 everything works smoothly. Try this snack Drawer NO lag 6.3.0.
Expected behavior
- Open drawer.
- Clicking on button with callback
closeDrawer() should close the drawer even if user clicks it immediately after the drawer opened.
Reproduction
https://snack.expo.dev/@melz_mr/drawer-lag-6_4_1
Platform
Packages
Environment
| package |
version |
| @react-navigation/native |
^6.0.10 |
| @react-navigation/drawer |
^6.4.1 |
| @react-navigation/stack |
^6.2.1 |
| react-native-safe-area-context |
3.3.2 |
| react-native-gesture-handler |
~2.1.0 |
| react-native-reanimated |
~2.3.1 |
| react-native |
0.64.3 |
| expo |
^44.0.4 |
| node |
v16.14.0 |
| npm |
8.3.1 |
Current behavior
On latest version
6.4.1it becomes impossible to immediately close the drawer by callingcloseDrawer().Here is the snack Drawer lag 6.4.1 taken and edited from the official docs.
I simply deleted
useLegacyImplementationand that's all.Steps:
Close drawerright after drawer opens.Interesting that if you use version
6.3.0everything works smoothly. Try this snack Drawer NO lag 6.3.0.Expected behavior
closeDrawer()should close the drawer even if user clicks it immediately after the drawer opened.Reproduction
https://snack.expo.dev/@melz_mr/drawer-lag-6_4_1
Platform
Packages
Environment