Natalie Mclaren
1 min readAug 16, 2020

--

Hi Oriana, glad you enjoyed the tutorial!

So if I've understood correctly, you just want the drawer in one screen, not the whole app and not necessarily the home screen? If so, it is possible to do that. I've modified my code and pushed to a repo, feel free to take a look. I've added the drawer navigator inside one of the screens I set out in the stack navigator. So it isn't the main navigator of the app anymore. Main files to look at are App.tsx and Roots.tsx. https://github.com/nats12/my-app

There's no hierarchy as such that you need to follow, you can nest as many navigators as you wish. It's advised to keep nesting to a minimum though as they can result in performance issues. More info on the best practices around nesting can be found here https://reactnavigation.org/docs/nesting-navigators/#best-practices-when-nesting

Best of luck! :)

--

--

Natalie Mclaren
Natalie Mclaren

Written by Natalie Mclaren

Web developer. Startup enthusiast. Coffee lover.

No responses yet