Need Help With React Native Development?

Work with our skilled React Native developers to accelerate your project and boost its performance.

Hire React Native Developers

Support On Demand!

Here, we specify a list of commands to run a React Native project from GitHub for Expo project and React-Native CLI projects.

After cloning the repository, navigate to the root directory where the package.json file is located, along with other directories like android/, ios/, and more.

Below are the necessary solutions or commands that need to be executed in the root directory:

1. Clone the Repository:

git clone
cd

2. Install Dependencies:

npm install
# or
yarn install

For Expo Projects:

3. Install Expo CLI (if not installed)

npm install -g expo-cli

4. Start the Development Server

npx expo start
Scan the QR code in the Expo Go app (Android/iOS) to run the project.

For React-Native CLI Projects:

5. Install React Native CLI (if not installed)

npm install -g react-native-cli

6. Install Platform-Specific Dependencies

For macOS (iOS & Android):

  • Install Xcode (for iOS)
  • Install Android Studio (for Android)
  • Install CocoaPods

7. Start the Development Server

npx react-native start

8. Run the Project

For Android:
npx react-native run-android

For iOS (macOS only):
npx react-native run-ios

Possible Issues & Fixes:

Issue Solution
Metro Bundler not starting Run npx react-native start –reset-cache
Android Emulator not found Open Android Studio > AVD Manager and start an emulator
IOS build failed (CocoaPods issue) Run cd ios && pod install && cd ..
Module not found error Try deleting node_modules and package-lock.json file, then reinstall dependencies

Related Q&A