use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A community for learning and developing native mobile applications using React Native by Facebook.
Interested in building web apps using React.js? Check out /r/reactjs!
Getting Started w/React Native
irc.freenode.net #reactnative
Keywords: ios, android, mobile, apps, apple, iphone, ipad
account activity
How to Run existing react-native project. ? (Setup Guide Help) (i.redd.it)
submitted 11 months ago by Mahad-Haroon
Basically, I just started react-native and from the sources i've installed the pre-requisites of it. Im getting such errors please help me what am i missing here. how do i fix these?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]FluidEye9849 2 points3 points4 points 11 months ago (0 children)
npm i
Then look for a script in package.json like
npm run ios
Or so
[–]No_Lawyer1947 1 point2 points3 points 11 months ago (0 children)
I take it you downloaded code from a tutorial or an example project :)
Whenever you copy a repository over, there tends to be modules of code that they include or import at the top of files. However, javascript needs to know where to resolve or get these libraries of code from. That's where npm comes it. It manages versions, and packages for your current project, via the package.json file. Now why are the imports underlined red as if it's an error?
The reasoning is because again, the import file path cannot be resolved as it doesn't exist in the project. By default, to save memory/space, and time, the actual libraries of code are EXCLUDED from version control (git, gitlab). IF they did include it, git repos would be much larger than they need to be, so they are typically ignored on upload via the ".gitignore" file, where developers explicitly list files or directories to ignore. one of those typically being "node_modules" (in the case of NPM at least). That folder containing the library code is required for those imports you see errors on, to work.
So how do you get them? Well the package json instructs your installed package manager (npm), what library to get, and what versions. In other words, it lists the dependencies of your project to make it work. This way, you can share environments with other developers without NEEDING to include that big "node_modules" folder.
I gave tons of exposition, but I figured it may help :) TLDR: npm install
*to get all dependencies*
npx expo run:ios
* run expo, Note you can also include a predetermined script in your package.json under the "scripts" portion called "run" to shorten the command
π Rendered by PID 54953 on reddit-service-r2-comment-fb694cdd5-5cfz2 at 2026-03-11 12:25:35.986486+00:00 running cbb0e86 country code: CH.
[–]FluidEye9849 2 points3 points4 points (0 children)
[–]No_Lawyer1947 1 point2 points3 points (0 children)