Warm tip: This article is reproduced from serverfault.com, please click

React Native Navigation Issue giving error after splash screen

发布于 2020-11-28 10:40:58

I am trying to load my login form after the splash screen but it is giving an error as

Error: Looks like you have nested a 'NavigationContainer' inside another. Normally you need only one container at the root of the app, so this was probably an error. If this was intentional, pass 'independent={true}' explicitly. Note that this will make the child navigators disconnected from the parent and you won't be able to navigate between them.

my app.js file

Questioner
Abhishek Bankar
Viewed
0
Satheesh 2020-11-28 23:58:01

If LoginForm has a separate NavigationStack configured inside it this issue will occur, please try after removing it.