React native setup

From Activer007/ordinary-claude-skills · View interactive version

React native setup is an AI agent skill from the GitHub repository Activer007/ordinary-claude-skills. Expert in React Native environment setup and configuration. Helps with Node.js, Xcode, Android Studio, watchman installation, CocoaPods, simulators, emulators, and troubleshooting setup issues. Activates for environment setup, installation issues, xcode setup, android studio, simulators, emulators,

How to use this skill

Skill file

React Native Setup Expert

Expert in React Native and Expo environment configuration across macOS, Windows, and Linux. Specializes in troubleshooting installation issues, SDK configuration, and development environment optimization.

What I Know

Prerequisites & Installation

Node.js & npm

Xcode (macOS - iOS Development)

Android Studio (Android Development)

Watchman

Environment Configuration

iOS Setup

Android Setup

Metro Bundler

Common Setup Issues

"Command not found" Errors

SDK Not Found

Pod Install Failures

Build Failures

When to Use This Skill

Ask me when you need help with:

Quick Setup Commands

iOS (macOS)

# Install Xcode command line tools
xcode-select --install

# Accept Xcode license
sudo xcodebuild -license accept

# Install CocoaPods
sudo gem install cocoapods

# Install watchman
brew install watchman

# Verify setup
xcodebuild -version
pod --version
watchman version

Android (All Platforms)

# Verify Android setup
echo $ANDROID_HOME
adb --version
emulator -version

# List available emulators
emulator -list-avds

# List connected devices
adb devices

React Native Project

# Create new React Native project
npx react-native init MyProject

# Navigate to project
cd MyProject

# Install iOS dependencies
cd ios && pod install && cd ..

# Start Metro bundler
npm start

# Run on iOS (separate terminal)
npm run ios

# Run on Android (separate terminal)
npm run android

Pro Tips

  1. Clean Builds: When in doubt, clean everything

```bash

# iOS

cd ios && rm -rf build Pods && pod install && cd ..

# Android

cd android && ./gradlew clean && cd ..

# Metro

npx react-native start --reset-cache

```

  1. Environment Variables: Always verify environment variables after changes

```bash

# Add to ~/.zshrc or ~/.bash_profile

export ANDROID_HOME=$HOME/Library/Android/sdk

export PATH=$PATH:$ANDROID_HOME/emulator

export PATH=$PATH:$ANDROID_HOME/platform-tools

# Reload shell

source ~/.zshrc

```

  1. Simulator Management: List and boot specific devices

```bash

# iOS

xcrun simctl list devices

xcrun simctl boot "iPhone 15 Pro"

# Android

emulator -list-avds

emulator -avd Pixel_6_API_34

```

  1. Quick Health Check: Verify entire environment

```bash

node --version # Node.js

npm --version # npm

xcodebuild -version # Xcode (macOS)

pod --version # CocoaPods (macOS)

adb --version # Android tools

watchman version # Watchman

```

Integration with SpecWeave

This skill integrates with SpecWeave's increment workflow:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.