• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: Can’t find Variable: NavigationContainer

Resolved: Can’t find Variable: NavigationContainer

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

I’ve been having a problem with NavigationContainer from react-navigation/native. I keep getting an error saying:
I have import { NavigationContainer } from '@react-navigation/native'; imported at the top but I still get the same error. I checked the package.json and it’s installed. I have also uninstalled node_modules twice and I still have the same problem.
Here is my app.js code :
Please help me find the source of the problem, thanks!

Answer:

This block has StackNavigator as being recursive.
Changing the inner StackNavigator to Stack.Navigator should resolve the problem.

If you have better answer, please add a comment about this, thank you!

android ios javascript react-native reactjs
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: itertools: cycle through several lists N times via iteration

24/03/2023

Resolved: Convert function is not working with {fn } in SQL Server

24/03/2023

Resolved: Why reference in pointer array doesn’t have data?

24/03/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.