Problem trying to open a Drawer Navigator nestled inside another Drawer Navigator - React Native

Asked

Viewed 39 times

-1

I have a main screen that contains two Navigators Drawers (one to navigate between the screens and the other to apply a filter to the main screen). Well, each screen has a header that contains the buttons to open the Drawers Navigators, on each screen step the following property to the header that serves to open when pressing one of the buttons:

onPress={() => Navigation.dispatch(DrawerActions.openDrawer())}

This property opens only the Drawernavigator that is more nested, what can I do to open the first?

1 answer

0

Each Header needs to be inserted into a Drawer directly. In case you’re inside a Drawer that’s inside another, he’ll see the last.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.