You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BTW
isDrawerOpen
is a simple function, which extracts info fromnav
and returns a boolean:const isDrawerOpen = (nav) => nav.routes[0].index === 1
Note that the path might be different for you, based on the way you hooked up your navigators.