in Education by
I create a blank project whit expo init then I installed react-navigation whit npm install @react-navigation/native and expo install react-native-gesture-handler react-native-reanimated react-native-screens react-native-safe-area-context @react-native-community/masked-view but when I run the app whit expo start I get this error: Unable to resolve module @react-navigation/stack from C:\Android\test\App.js: @react-navigation/stack could not be found within the project. Error screenshot: App.js file: import * as React from 'react'; import { View, Text } from 'react-native'; import { NavigationContainer } from '@react-navigation/native'; import { createStackNavigator } from '@react-navigation/stack'; function HomeScreen() { return ( Home Screen ); } const Stack = createStackNavigator(); function App() { return ( ); } export default App; The link I used to install the react-navigation The link I used to create App.js here package.json file: { "main": "node_modules/expo/AppEntry.js", "scripts": { "start": "expo start", "android": "expo start --android", "ios": "expo start --ios", "web": "expo start --web", "eject": "expo eject" }, "dependencies": { "@react-navigation/native": "^5.9.4", "expo": "~41.0.0", "expo-status-bar": "~1.0.4", "react": "16.13.1", "react-dom": "16.13.1", "react-native": "https://github.com/expo/react-native/archive/sdk-41.0.0.tar.gz", "react-native-web": "~0.13.12", "react-native-gesture-handler": "~1.10.2", "react-native-reanimated": "~2.1.0", "react-native-screens": "~3.0.0", "react-native-safe-area-context": "3.2.0", "@react-native-community/masked-view": "0.1.10" }, "devDependencies": { "@babel/core": "^7.9.0" }, "private": true } Node version: v14.16.1 Npm version: 6.14.12 JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
do what the error say, in terminal npm install @react-navigation/stack or yarn add @react-navigation/stack

Related questions

0 votes
    Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 13, 2022 in Education by JackTerrance
0 votes
    You need to ensure that Azure DNS can resolve names for your registered domain. What should you implement? A. An MX Record B. A Secondary Zone C. A CNAME Record D. Zone Delegation...
asked Nov 20, 2022 in Education by JackTerrance
0 votes
    How is India trying to resolve its differences with China? Please answer the above question....
asked Aug 4, 2022 in Education by JackTerrance
0 votes
    In 1978, the United States held a conference at __________ to resolve the Arab-Israel dispute. (Camp David, Helsinki, Paris, Geneva) Please answer the above question....
asked Aug 4, 2022 in Education by JackTerrance
0 votes
    I'm trying to build my app on a physical device. Each time I try to build I get the following ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 1, 2022 in Education by JackTerrance
0 votes
    I am trying to update an Entity EF Core record like this: public class Customer { public int Id { ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 10, 2022 in Education by JackTerrance
0 votes
    I'm developing a Spring Boot application in which I'm integrating Amazon S3 service. This class is my ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 3, 2022 in Education by JackTerrance
0 votes
    I want to calculate browser height without considering browser address bar and bottom navigation bar height. The ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 26, 2022 in Education by JackTerrance
0 votes
    I want to calculate browser height without considering browser address bar and bottom navigation bar height. The ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 24, 2022 in Education by JackTerrance
0 votes
    I am trying to use a BottomNavigationView with Android Navigation to create a standard tabbed application with three ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 5, 2022 in Education by JackTerrance
0 votes
    I have created new controller in the project with gii but I am getting Not Found (#404) error when ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 2, 2022 in Education by JackTerrance
0 votes
    As asked in this question, I also want to know how to resolve a conflicting git stash pop without ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 2, 2022 in Education by JackTerrance
0 votes
    This one has been bugging me for a while now. Is there a way I can stop Intellj IDEA from ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 24, 2022 in Education by JackTerrance
0 votes
    I recently moved my website to a shared hosting solution at asmallorange.com, but I had to set my ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 21, 2022 in Education by JackTerrance
0 votes
    I recently moved my website to a shared hosting solution at asmallorange.com, but I had to set my ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 20, 2022 in Education by JackTerrance
...