A comprehensive, high-performance React Native 0.84+ boilerplate. This guide provides exhaustive instructions for setting up your environment and running the application on any platform or device.
Run these commands to install the core toolchain:
# Core dependencies
brew install node watchman
sudo gem install cocoapods
# Android specific (JDK 17)
brew install openjdk@17Add the following to your ~/.zshrc (or ~/.bash_profile) to ensure the build tools are discoverable:
export JAVA_HOME="/opt/homebrew/opt/openjdk@17"
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator:$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-toolsNote: Run source ~/.zshrc after saving.
npm install
cd ios && bundle install && bundle exec pod install && cd ..Start the app on a specific virtual device:
# List available simulators
xcrun simctl list devices
# Run on a specific one
npx react-native run-ios --simulator "iPhone 16 Pro"- Connect your iPhone via USB or same Wi-Fi.
- Open Xcode:
open ios/ReactNativeTest.xcworkspace. - Configure Signing:
- Select the project in the left sidebar.
- Go to Signing & Capabilities.
- Select your Team (Personal Team is fine).
- Ensure the Bundle Identifier is unique.
- Run: Select your physical device from the target selector and hit Play, or run:
npx react-native run-ios --device "Your Device Name"
- Open Android Studio → Virtual Device Manager.
- Start an AVD (Android Virtual Device).
- Launch App:
npx react-native run-android
- Enable Developer Options: Go to Settings → About Phone → Tap Build Number 7 times.
- Enable USB Debugging: Settings → Developer Options → USB Debugging.
- Connect Device: Plug in via USB.
- Verify Connection:
adb devices
- Run:
npx react-native run-android
The JavaScript bundler must be running for development:
npm startUse these shortcuts to access the developer menu (Reload, Debug, etc.):
- iOS Simulator:
Cmd ⌘ + D - Android Emulator:
Cmd ⌘ + M(macOS) orCtrl + M(Windows) - Real Devices: Shake the device.
├── android/ # Native Android source
├── ios/ # Native iOS source (Swift/Objective-C)
├── __tests__/ # Jest test suites
├── App.tsx # Main application entry component
├── index.js # Entry point for Metro
└── package.json # Dependencies and scripts
- Pod Issues:
cd ios && pod install --repo-update - Build Fails:
npm run clean(if configured) or manually deleteios/buildandandroid/app/build. - Metro Cache:
npm start -- --reset-cache - Missing Java: Ensure
java -versionreturns version 17.
Maintained by RahulBhalley | Built with ❤️ by Antigravity