Work with our skilled React Native developers to accelerate your project and boost its performance.
Hire React Native DevelopersHere, 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:
git clone
cd
npm install
# or
yarn install
npm install -g expo-cli
npx expo start
Scan the QR code in the Expo Go app (Android/iOS) to run the project.
npm install -g react-native-cli
For macOS (iOS & Android):
npx react-native start
For Android:
npx react-native run-android
For iOS (macOS only):
npx react-native run-ios
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 |