react-native-expo
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseThe skill is based on Expo SDK (docs from expo/expo repo), generated at 2026-02-26.
Expo provides tooling and services for React Native: app config and Prebuild (Continuous Native Generation), Expo SDK packages, development builds, EAS Build (cloud builds and internal distribution), and EAS Update (over-the-air JS updates). Use development builds for production apps; Expo Go is a limited playground.
本Skill基于Expo SDK(文档来自expo/expo仓库),生成于2026-02-26。
Expo 为React Native提供工具与服务:应用配置与Prebuild(持续原生代码生成)、Expo SDK包、开发构建、EAS Build(云构建与内部分发)以及EAS Update(JavaScript空中更新)。生产应用请使用开发构建;Expo Go仅为功能有限的沙箱环境。
Core References
核心参考
| Topic | Description | Reference |
|---|---|---|
| App config | app.json, app.config.js/ts, dynamic config, reading in app | core-config |
| Development workflow | Dev loop, development builds vs Expo Go, when to rebuild | core-development-workflow |
| Development and production modes | DEV, --no-dev --minify, when to use each | core-development-mode |
| Metro | metro.config.js, resolver, transformer, cache, env vars | core-metro |
| Logging | Console in terminal, native logs, log-android / log-ios | core-logging |
| CNG and Prebuild | npx expo prebuild, --clean, EAS Build and native dirs | core-continuous-native-generation |
| 主题 | 描述 | 参考 |
|---|---|---|
| 应用配置 | app.json、app.config.js/ts、动态配置、应用内读取 | core-config |
| 开发工作流 | 开发循环、开发构建 vs Expo Go、何时重新构建 | core-development-workflow |
| 开发与生产模式 | DEV、--no-dev --minify、各模式适用场景 | core-development-mode |
| Metro | metro.config.js、解析器、转换器、缓存、环境变量 | core-metro |
| 日志 | 终端控制台、原生日志、log-android / log-ios | core-logging |
| CNG与Prebuild | npx expo prebuild、--clean、EAS Build与原生目录 | core-continuous-native-generation |
Features
功能特性
Expo SDK and native code
Expo SDK与原生代码
| Topic | Description | Reference |
|---|---|---|
| Expo SDK and third-party libs | Install with npx expo install, compatibility, config plugins | features-expo-modules |
| expo-constants | App manifest, build info, system constants, extra/env at runtime | features-sdk-constants |
| expo-image | Performant image component, caching, BlurHash/ThumbHash, contentFit | features-sdk-image |
| expo-file-system | File and directory API, Paths.cache/document, read/write, download | features-sdk-filesystem |
| expo-secure-store | Encrypted key-value store, optional biometric auth | features-sdk-secure-store |
| Config plugins | Use and write plugins to modify AndroidManifest, Info.plist during prebuild | features-config-plugins |
| Native modules | Expo Modules API, local module, config plugin for native config, lifecycle | features-native-modules |
| 主题 | 描述 | 参考 |
|---|---|---|
| Expo SDK与第三方库 | 使用npx expo install安装、兼容性、配置插件 | features-expo-modules |
| expo-constants | 应用清单、构建信息、系统常量、运行时额外参数/环境变量 | features-sdk-constants |
| expo-image | 高性能图片组件、缓存、BlurHash/ThumbHash、contentFit属性 | features-sdk-image |
| expo-file-system | 文件与目录API、Paths.cache/document、读写、下载 | features-sdk-filesystem |
| expo-secure-store | 加密键值存储、可选生物识别认证 | features-sdk-secure-store |
| 配置插件 | 使用并编写插件,在prebuild阶段修改AndroidManifest、Info.plist | features-config-plugins |
| 原生模块 | Expo Modules API、本地模块、用于原生配置的插件、生命周期 | features-native-modules |
EAS Build and Submit
EAS Build与提交
| Topic | Description | Reference |
|---|---|---|
| EAS Build | Cloud builds, eas.json profiles, development/preview/production | features-eas |
| EAS Submit | Submit to Google Play and App Store (TestFlight), eas.json, CI | features-eas-submit |
| 主题 | 描述 | 参考 |
|---|---|---|
| EAS Build | 云构建、eas.json配置文件、开发/预览/生产环境 | features-eas |
| EAS Submit | 提交至Google Play与App Store(TestFlight)、eas.json、CI集成 | features-eas-submit |
Development experience
开发体验
| Topic | Description | Reference |
|---|---|---|
| iOS Simulator and Android emulator | Setup, npx expo start + i/a, limitations, troubleshooting | features-simulators-emulators |
| 主题 | 描述 | 参考 |
|---|---|---|
| iOS模拟器与Android模拟器 | 配置、npx expo start + i/a、限制、故障排查 | features-simulators-emulators |
Updates and versioning
更新与版本控制
| Topic | Description | Reference |
|---|---|---|
| expo-updates and EAS Update | OTA updates, runtime version, channels | features-updates |
| Upgrading Expo SDK | Incremental upgrade, npx expo install --fix, expo-doctor | features-versioning |
| 主题 | 描述 | 参考 |
|---|---|---|
| expo-updates与EAS Update | 空中更新、运行时版本、渠道 | features-updates |
| 升级Expo SDK | 增量升级、npx expo install --fix、expo-doctor工具 | features-versioning |
Best practices
最佳实践
| Topic | Description | Reference |
|---|---|---|
| Debugging | Dev vs production errors, native logs, reproducing crashes | best-practices-debugging |
| Common development errors | Metro, AppRegistry, SDK version, version mismatch, caches | best-practices-common-errors |
| 主题 | 描述 | 参考 |
|---|---|---|
| 调试 | 开发与生产环境错误、原生日志、复现崩溃问题 | best-practices-debugging |
| 常见开发错误 | Metro、AppRegistry、SDK版本、版本不匹配、缓存问题 | best-practices-common-errors |