Token导航 LogoToken导航TokenDH.com
前端设计敏感数据github未标认证来源可访问clear审计通过

react-native-setupReact native 设置

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

461

周安装

19

GitHub Stars

127

下载量

150
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:react-native-setup(React native 设置)
来源仓库:https://github.com/anton-abyzov/specweave
仓库路径:skills/react-native-setup
安装命令:
npx skills add https://github.com/anton-abyzov/specweave --skill react-native-setup
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/anton-abyzov/specweave --skill react-native-setup

简介

专为 2025 年 React Native 0.83+ 和 Expo SDK 54+ 环境配置设计,支持跨平台开发。

  • 涵盖 Node.js 版本管理、Hermes 引擎启用、EAS Build 配置与开发环境优化。
  • 提供从零开始的初始化命令与组件添加流程,简化移动端开发门槛。
  • 需确保 Node.js 20+ 环境,并注意不同操作系统下的依赖兼容性问题。
  • 建议在沙箱环境中先行验证,再迁移至正式项目。

SKILL.md

React Native Setup Expert (2025)

Expert in React Native 0.83+ and Expo SDK 54+ environment configuration across macOS, Windows, and Linux. Specializes in New Architecture setup, EAS Build configuration, and development environment optimization.

What I Know

Prerequisites & Installation (2025 Requirements)

Node.js & npm

  • Node.js 20.x or later required (Node 18 EOL April 2025)
  • Node.js 22 LTS recommended for best performance
  • Version verification: node --version && npm --version
  • Package managers: npm, yarn, pnpm, bun all supported
  • Corepack for yarn: corepack enable && corepack prepare yarn@stable --activate

Xcode (macOS - iOS Development)

  • Xcode 16.1 or later required (minimum for RN 0.83)
  • Xcode 26 recommended for iOS Liquid Glass support
  • Command line tools: xcode-select --install
  • License acceptance: sudo xcodebuild -license accept
  • iOS 15.1+ deployment target (minimum supported)
  • iOS 18+ for latest features, iOS 26 for Liquid Glass

Android Studio (Android Development)

  • Android Studio Ladybug or later (2024.2.1+)
  • Required SDK components:

- Android SDK Platform 35 (API level 35) - Android SDK Build-Tools 35.0.0 - Android Emulator - Android SDK Platform-Tools - NDK 27.1.12297006 (for native modules) - CMake 3.22.1+ (for Turbo Modules)

  • compileSdkVersion 35, targetSdkVersion 35, minSdkVersion 24
  • ANDROID_HOME environment variable setup
  • Edge-to-edge display support (Android 15+)

Watchman

  • Installation via Homebrew (macOS): brew install watchman
  • Purpose: File watching for fast refresh with Metro
  • Critical for large codebases
  • Cache clearing: watchman watch-del-all

Environment Configuration

iOS Setup

  • CocoaPods 1.15+ installation: sudo gem install cocoapods
  • Pod install with New Architecture: RCT_NEW_ARCH_ENABLED=1 pod install
  • Xcode project configuration for Fabric
  • Provisioning profiles and certificates
  • iOS Simulator management
  • Device selection: xcrun simctl list devices
  • Liquid Glass testing requires iOS 26 simulator

Android Setup

  • Gradle 8.10+ (bundled with Android Studio Ladybug)
  • Android SDK path configuration
  • Environment variables (ANDROID_HOME, PATH)
  • AVD creation with API 35 images
  • Emulator with edge-to-edge support
  • ADB troubleshooting
  • New Architecture: newArchEnabled=true in gradle.properties

Metro Bundler

  • Port 8081 configuration
  • Cache clearing: npx react-native start --reset-cache
  • Metro config for New Architecture
  • Symlink support for monorepos
  • Custom resolver configuration

EAS Build Setup (Expo)

  • Install EAS CLI: npm install -g eas-cli
  • Login: eas login
  • Configure: eas build:configure
  • Development builds for custom native code
  • EAS Update for OTA updates

Common Setup Issues

"Command not found" Errors

  • PATH configuration for Node, Android SDK, Xcode tools
  • Shell profile updates (.zshrc,.bash_profile)
  • Symlink issues with nvm/fnm

SDK Not Found

  • SDK path verification: echo $ANDROID_HOME
  • Environment variable troubleshooting
  • SDK Manager reinstallation
  • NDK path for native modules

Pod Install Failures

  • CocoaPods version issues (requires 1.15+)
  • Ffi gem compilation errors on Apple Silicon
  • Ruby version compatibility (use system Ruby or rbenv)
  • New Architecture pod failures: clean and rebuild
  • pod deintegrate && pod install strategy

Build Failures

  • Clean build strategies (see Pro Tips)
  • Dependency conflicts with New Architecture
  • Native module compilation errors
  • Xcode derived data clearing
  • Gradle cache corruption

New Architecture Issues

  • Turbo Module not found: check codegen ran
  • Fabric component not rendering: verify native setup
  • Bridge module compatibility: use interop layer

When to Use This Skill

Ask me when you need help with:

  • Initial React Native 0.83+ environment setup
  • Installing and configuring Xcode 16.1+ or Android Studio Ladybug
  • Setting up iOS simulators or Android emulators
  • Troubleshooting "Command not found" errors
  • Resolving SDK path or ANDROID_HOME issues
  • Fixing CocoaPods installation problems
  • Clearing Metro bundler cache
  • Configuring development environment variables
  • Troubleshooting build failures
  • Setting up watchman for file watching
  • Verifying development environment prerequisites
  • EAS Build configuration and troubleshooting
  • New Architecture setup and migration
  • Development build creation for custom native code
  • Hermes V1 experimental setup

Quick Setup Commands

iOS (macOS)

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

# Accept Xcode license
sudo xcodebuild -license accept

# Install CocoaPods (1.15+ required)
sudo gem install cocoapods

# Install watchman
brew install watchman

# Verify setup
xcodebuild -version  # Should be 16.1+
pod --version        # Should be 1.15+
watchman version

Android (All Platforms)

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

# Verify SDK version
$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --list | grep "platforms;android-35"

# List available emulators
emulator -list-avds

# List connected devices
adb devices

React Native CLI Project

# Create new React Native project (New Architecture enabled by default)
npx @react-native-community/cli init MyProject

# Navigate to project
cd MyProject

# Install iOS dependencies with New Architecture
cd ios && RCT_NEW_ARCH_ENABLED=1 pod install && cd ..

# Start Metro bundler
npm start

# Run on iOS (separate terminal)
npm run ios

# Run on Android (separate terminal)
npm run android

Expo Project (Recommended)

# Create new Expo project
npx create-expo-app@latest MyProject

# Navigate to project
cd MyProject

# Start development server
npx expo start

# Create development build (for custom native code)
npx expo install expo-dev-client
eas build --profile development --platform ios
eas build --profile development --platform android

Pro Tips

  1. Clean Builds: When in doubt, clean everything # iOS (nuclear option) cd ios && rm -rf build Pods Podfile.lock && pod install && cd.. # Android cd android &&./gradlew clean && cd.. # Metro + Watchman watchman watch-del-all npx react-native start --reset-cache # Expo npx expo start --clear
  2. Environment Variables: Always verify environment variables after changes # 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 export PATH=$PATH:$ANDROID_HOME/cmdline-tools/latest/bin # Reload shell source ~/.zshrc
  3. Simulator Management: List and boot specific devices # iOS xcrun simctl list devices xcrun simctl boot "iPhone 16 Pro" # Android (API 35 for edge-to-edge) emulator -list-avds emulator -avd Pixel_8_API_35
  4. Quick Health Check: Verify entire environment node --version # Should be 20+ npm --version # npm xcodebuild -version # Should be 16.1+ pod --version # Should be 1.15+ adb --version # Android tools watchman version # Watchman eas --version # EAS CLI (Expo)
  5. EAS Build Configuration: Essential eas.json {"build": {"development": {"developmentClient": true, "distribution": "internal"}, "preview": {"distribution": "internal"}, "production": {}}}
  6. Hermes V1 (Experimental): Enable next-gen engine // metro.config.js module.exports = {transformer: {hermesParser: true,},}; # Verify Hermes is running # In app: global.HermesInternal!== undefined

Version Compatibility Matrix (2025)

ComponentMinimumRecommendedNotes
Node.js20.x22 LTSNode 18 EOL April 2025
React Native0.76+0.83New Arch default since 0.76
React18.3+19.2Activity, useEffectEvent
Expo SDK52+54Native tabs, Liquid Glass
Xcode16.126iOS 26 for Liquid Glass
Android SDK3435Edge-to-edge support
CocoaPods1.141.15+New Arch compatibility
Gradle8.68.10+K2 compiler support

Integration with SpecWeave

This skill integrates with SpecWeave's increment workflow:

  • Use during /sw:increment planning for environment setup tasks
  • Reference in tasks.md for setup-related acceptance criteria
  • Include in spec.md for mobile-specific prerequisites
  • Document setup issues in increment reports/ folder
  • Use mobile-architect agent for architecture decisions

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

28.85%
按下载量换算43

Antigravity

23.86%
按下载量换算36

Gemini CLI

17.6%
按下载量换算26

Cursor

12%
按下载量换算18

Codex

7.05%
按下载量换算11

OpenCode

3.79%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills