Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Close the drawer when tapped any drawer menu #355

Open
gujral1997 opened this issue May 27, 2018 · 0 comments
Open

Close the drawer when tapped any drawer menu #355

gujral1997 opened this issue May 27, 2018 · 0 comments

Comments

@gujral1997
Copy link

gujral1997 commented May 27, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant