Ad
Build React Native Project After Pulling From GitHub
My friend initialized a GitHub repo after initializing React Native in a certain directory. After I pull his files into a directory and initialize a local repository on my computer and run the XCode project, there seem to be a lot of missing files and the build fails. There's probably something I need to do which is taken care of when setting up react native in the "react-native init AwesomeProject" step, but I'm not trying to set up a new project. Instead, I want to keep the files he's already developed, but set up the React Native "environment"..how would I go about doing this?
Ad
Answer
You need to install the dependencies through npm. Just enter the following command in the root directory of your project:
npm i
Ad
source: stackoverflow.com
Related Questions
- → Using Safari Web Inspector on Xcode's IOS simulator to view cookies
- → React Native Debug iOS Component in XCode
- → Error tokenizing data. C error: EOF following escape character
- → My xcode is showing two branches open at same time in source control
- → Build React Native project after pulling from GitHub
- → Can't import dependency installed with Cocoapods
- → Adding GooglePlayGames API to Xcode results in multiple architecture i386 errors
- → Could not find Developer Disk Image - Xcode 7.2 & iOS 9.2
- → Binary operator '&' cannot be applied to operands of type 'SCNetworkReachabilityFlags' and 'Int'
- → XCode Scene Editor or Coding for SpriteKit Games
- → How to resolve "error: Failed to read Info.plist of app (Couldn't load Info dictionary for DVTFilePath)"
- → iOS9 and initWithPattern with iPad Pro causing repeating background
- → when I create a ViewController, "also create a xib" can't be seleted
Ad