Skip to content

Close the drawer when tapped any drawer menu #355

Open

Description

@gujral1997

I want that drawer should automatically close If I tap any of the menu or sub menu in the drawer.

                      if(submenuTitle.submenu == "Stream Settings") {
                        // redirect user to the stream settings page
                        Actions.settings();
                      }

                      if(submenuTitle.submenu == "Manage social accounts") {
                        // redirect user to the connect page
                        Actions.connectCard();
                      }

                      if(submenuTitle.submenu == "Go Live") {
                        // redirect user to the stream page
                        Actions.goLive();
                      }
                    }}

Above is the part of my drawer code. I want my drawer to close before navigating to another page when I tap any sub-menu like Go Live

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions