Skip to content

Drawer open status delays #10504

Description

@Melzmr

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:

  1. Open drawer.
  2. Try to click the button Close drawer right after drawer opens.
  3. 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

  1. Open drawer.
  2. 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

  • Android
  • iOS
  • Web
  • Windows
  • MacOS

Packages

  • @react-navigation/bottom-tabs
  • @react-navigation/drawer
  • @react-navigation/material-bottom-tabs
  • @react-navigation/material-top-tabs
  • @react-navigation/stack
  • @react-navigation/native-stack

Environment

  • I've removed the packages that I don't use
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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions