Skip to content
Advertisement

Error: Looks like you have nested a ‘NavigationContainer’ inside another. Normally you need only one container at the root of the app

I followed the docs of React 5 for Drawer Navigation in react native but getting this error. Here is my Code

JavaScript

I am new to react native, so don’t know what to do

Advertisement

Answer

You only need to declare one < NavigationContainer > in the top component, example:

JavaScript
Advertisement