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
With a setup like this, when the drawer is open, there will only be the "Main" <DrawerItem /> so I used the drawerContent render prop to render a custom one.
Inside <MyDrawerContent />, I have several of these <DrawerItem />'s that lead to Stack Screens inside the Tab Navigator:
When I tap on the <DrawerItem />, it takes me into the expected screen from the Tab Navigator. However, the <DrawerItem /> doesn't have the active styling. I guess this is expected since that screen isn't on the Drawer Navigator itself, but I would like this to be in the active state.
Is there a way to get the current Active Screen and do a comparison on the <DrawerItem />? Is this possible to do?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
My navigation setup is like this:
With a setup like this, when the drawer is open, there will only be the "Main"
<DrawerItem />
so I used thedrawerContent
render prop to render a custom one.Inside
<MyDrawerContent />
, I have several of these<DrawerItem />
's that lead to Stack Screens inside the Tab Navigator:When I tap on the
<DrawerItem />
, it takes me into the expected screen from the Tab Navigator. However, the<DrawerItem />
doesn't have the active styling. I guess this is expected since that screen isn't on the Drawer Navigator itself, but I would like this to be in the active state.Is there a way to get the current Active Screen and do a comparison on the
<DrawerItem />
? Is this possible to do?Versions:
Beta Was this translation helpful? Give feedback.
All reactions