Ad

Build React Native Project After Pulling From GitHub

- 1 answer

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
Ad