Getting error while running someone else project's react native code in VS code - react-native

I am new to react native, I am getting error while trying to run someone else project in my VS code.
Steps that i followed:
Unzipped project
Kept in one folder
Opened that project in VS Code
Run command npm install
Can someone please help me what should i do.
enter image description here

Related

React native (Expo) project shows "cant find variable : require"

I am an intermediate react developer.
I was running my react native app peacefully without any problems untill one morning, i did not change anything in my codebase but when i tried to run the app through expo client, it started showing the error in the screenshot.
I have checked and checked this platform, and not a single solution.
I am currently using expo sdk 43 (managed workflow) please help...this is my first time posting here.
This is the error below;
Can't find variable: require
http://127.0.0.1:19000/node_modules/expo/AppEntry.bundle?platform=android&dev=true&hot=false&minify=false:5:24.globalcode#http://127.0.0.1:19000/node_modules /expo/AppEntry.bundle?platform=android&dev=true& hot=false&minify=false:720:3.
Click here for the screenshot of the error
I got it fixed.
See what i did,
I created a fresh expo project using "expo init"
Then copied all my files into the new project "except node_modules and .expo folders".
Then i ran "npm install"
Viola!!! Everything works fine now
Note: i tried removing "node_modules" before over and over again and it dint work.
The only thing that worked was starting a new project and following the above steps.

I am building an app using Expo but for some reason all of a sudden the 'npm' start command no longer works

I am fairly new to React Native. I am building a basic app using expo-cli. I don't have a deep understanding on how it works, but I've been following tutorials online on how to use it. Today, I was working on it and used 'npm start' command to launch the expo portal so I could demo my app on a virtual machine but it says it can no longer find the link to the .json file. Can someone please help me to get it working again.
Looks like you're one directory up? Try cd WhatsUp and then run npm start again.

error in terminal trying to create a react app (screenshot)

i started doing a react tutorial from youtube, following along with the instructions on setting up a basic react app and i ran into this error actually trying to create the app via the terminal in VScode. have you ever encountered this? any fixes?enter image description here (see highlighted part of screenshot)
[terminal error][2]
Start on a fresh project directory eg my-first-project
Then open that folder in a your VSCode and in the VSCode cli, run npx create-react-app .(the . indicates that it should install it in the current directory)
then open src folder and start adding your own components

RNTester : Unable to find React Native files

I was going through a react-native tutorial and got a suggestion to check RNTester
I followed the steps of cloning and installing mentioned on github. But when I hit the run button on Xcode I get following error:
error Unable to find React Native files. Make sure "react-native"
module is installed in your project dependencies. Process terminated.
Press to close the window
The simulator is also launched with bunch of method names.
Any help is appreciated.

React Native Example App does not run in Expo Snack

I'm learning React Native and trying to add a component to an Expo Snack for testing. I can't even get the example app to work though.
Is it something different about how Snacks work vs. a desktop development environment? I've encountered that type of difference using JSFiddle, for example.
I straight copy-pasted the code from the Github repo into snack.expo.io and it gave me an error:
Device: (946:881) Unable to resolve module 'module://expo-font.js'
Evaluating module://expo-font.js
Evaluating module://react-native-numeric-input.js
Evaluating module://App.js
Loading module://App.js
I've gotten this error before, but I've never been able to figure out why. Is it an issue with the package, which was updated just 7 days ago, or something else? Please advise.
It may be due to missing of node modules in your project compared to the Github project. As the Stack.expo browser won't give us full freedom to install custom modules, I suggest you to download VS Code and open the Github project in it, then do "npm install" from cmd and "react-native run-android/ios".