Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

Cannot find module '@react-navigation/native' or its corresponding type declarations

$
0
0

Im having trouble im my react-native app using expo and typescript. I have installed the libraries using npm and they are available in the node_modules folder see the picture.enter image description here

The same problem is happening for '@react-navigation/stack'and when I run the program I get this error:

 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}' explicitely. Note that this will make the child navigators disconnected from the parent and you won't be able to navigate between them.

however my program have only one NavigationContainer. What seems to be the problem here ?P.S: I tried reinstalling the packages but still no progress.


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>