react-native-standards
Use when building a React Native / Expo mobile app in a touchstone repo — Expo + EAS, the New Architecture, navigation, lists, native modules, OTA updates, mobile security. Triggers on `react-native`/`expo` in package.json, app.json/eas.json, .tsx mobile screens. For web React (DOM/Vite/Next) use the react skill; language rules live in the typescript skill.
- License 许可
- MIT
- 最近更新
- 2026-08-26
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- react-native-standards
- license
- MIT
- metadata
- { "author": "touchstone", "version": "0.2.0" }
- description
- Use when building a React Native / Expo mobile app in a touchstone repo — Expo + EAS, the New Architecture, navigation, lists, native modules, OTA updates, mobile security. Triggers on `react-native`/`expo` in package.json, app.json/eas.json, .tsx mobile screens. For web React (DOM/Vite/Next) use the react skill; language rules live in the typescript skill.
03 SKILL.md 正文
React Native (framework)
Full standard: standards/frameworks/react-native.md (layers on standards/frameworks/react.md +
standards/languages/typescript.md). The standards/frameworks/react.md state/component/forms rules
still hold; this covers what's native. Load-bearing rules:
Always
- Expo managed workflow + EAS (Build/Update/Submit). Native projects are generated from
app.json+ config plugins — never hand-editios//android/. Bare/dev-client is the escape hatch, not the default. - New Architecture only (Fabric + TurboModules + JSI, Hermes engine). Vet every native dep for New-Arch support; no legacy bridge modules.
- Server state = TanStack Query (persisted to MMKV, offline-tolerant, Zod-validated, timeout-bounded);
client state =
useState/Zustand — same split asstandards/frameworks/react.md. Forms = React Hook Form + Zod. - Expo Router (file-based, typed routes) for navigation; FlashList over FlatList for lists;
expo-imagefor cached remote images.
Don't get burned
- The JS bundle is public — no secrets/API keys/private endpoints in it. Credentials only in
expo-secure-store(Keychain/Keystore), never AsyncStorage/MMKV. - OTA (EAS Update) ships JS only — native changes (new permission, SDK bump, plugin) need a new
EAS Build; pin
runtimeVersionso updates land only on compatible binaries. - Permissions just-in-time with usage strings via config plugins; profile lists on a low-end physical Android; respect safe areas and test both platforms.
Done
biome ci · tsc · Jest+RNTL · expo-doctor clean; New Arch; FlashList; no secrets in bundle;
runtimeVersion pinned; Maestro/Detox + a11y (VoiceOver/TalkBack) on critical flows. See
standards/frameworks/react-native.md.
04 同仓库更多 Skills
ok-standards
Use when writing shell, per standards/languages/shell.md.
demo-standards
Use when editing demo code in a touchstone fixture repo, a deliberately ordinary description that is long enough to clear the forty character minimum.
demo-standards
Use when editing demo code in a touchstone fixture repo, a deliberately ordinary description that is long enough to clear the forty character minimum.
demo-standards
Use when editing demo code in a touchstone fixture repo, a deliberately ordinary description that is long enough to clear the forty character minimum.
demo-standards
Use when editing demo code in a touchstone fixture repo, a deliberately ordinary description that is long enough to clear the forty character minimum.
demo-standards
Use when editing demo code in a touchstone fixture repo, a deliberately ordinary description that is long enough to clear the forty character minimum.