Agent Skills › AjayIrkal23/agentic-mercy-10x › expo-react-native

expo-react-native

GitHub

提供 Expo/React Native 开发规范,涵盖路由、组件使用及原生能力处理。指导在移动端环境下避免 Web 规则干扰,并通过静态检查验证代码,无需启动模拟器。

skills/expo-react-native/SKILL.md AjayIrkal23/agentic-mercy-10x

Trigger Scenarios

需要编写或审查 React Native 移动应用代码时 询问 Expo Router 路由配置或原生权限处理问题时

Install

npx skills add AjayIrkal23/agentic-mercy-10x --skill expo-react-native -g -y
More Options

Use without installing

npx skills use AjayIrkal23/agentic-mercy-10x@expo-react-native

指定 Agent (Claude Code)

npx skills add AjayIrkal23/agentic-mercy-10x --skill expo-react-native -a claude-code -g -y

安装 repo 全部 skill

npx skills add AjayIrkal23/agentic-mercy-10x --all -g -y

预览 repo 内 skill

npx skills add AjayIrkal23/agentic-mercy-10x --list

SKILL.md

Frontmatter
{
    "name": "expo-react-native",
    "metadata": {
        "schema": 1,
        "category": "frontend",
        "surfaces": [
            "frontend"
        ],
        "triggers": {
            "intents": [],
            "keywords": [
                "expo",
                "expo router",
                "react native",
                "react-native",
                "mobile app",
                "expo app",
                "native screen",
                "android",
                "ios",
                "stylesheet",
                "expo-camera",
                "expo go",
                "eas build",
                "flatlist"
            ]
        },
        "platforms": [
            "linux",
            "darwin",
            "windows"
        ]
    },
    "description": "Expo and React Native app patterns: Expo Router file routes and layouts, StyleSheet and RN primitives instead of web DOM, CSS and Tailwind, platform permissions, native-safe libraries and verification without starting Metro or a device.",
    "when_to_use": "Use when building or fixing screens, navigation, native modules or permissions in an Expo \/ React Native app (app\/ routes, app.json or app.config.*, expo-* packages), or when web frontend rules would not fit a mobile file."
}

Expo / React Native

Read the app's own docs first (site-sync-vista: sitesync-mobile-native/CLAUDE.md, frontend_docs/16-mobile-native-frontend.md; routing root sitesync-mobile-native/app/). The project contract wins over these defaults.

Web rules that do NOT apply here

rules/frontend.md and the web skills load on every .tsx, including mobile files. In an RN file ignore their DOM-only parts:

  • no div/span/button/className, no CSS files, no Tailwind classes unless the app uses NativeWind (check package.json); use View, Text, Pressable, Image, ScrollView, FlatList and StyleSheet.create;
  • no window, document, localStorage, IntersectionObserver, motion/react, or browser-only packages; storage is expo-secure-store (secrets) or AsyncStorage (other);
  • Higgsfield web assets and the web design-taste rules are not the visual authority; follow the app's existing theme module.

Routing (Expo Router)

  • Files under app/ are routes; _layout.tsx defines the navigator (Stack, Tabs) for its folder; (group) folders group without adding a URL segment; [id].tsx is a dynamic segment read with useLocalSearchParams().
  • Navigate with <Link href> or router.push(); typed routes when the app enables them.
  • Keep screens thin: data fetching in hooks / API modules (apis/), state in the store (store/), presentational pieces in components/.

Lists, layout, performance

  • Long lists use FlatList/SectionList with a stable keyExtractor; never ScrollView + map over unbounded data. Pagination and filters stay server-driven.
  • Wrap screens in the app's safe-area container; respect keyboard avoidance on forms.
  • Avoid inline object/array props in list rows; memoise row components when profiling shows re-renders.

Native capabilities

  • Request permissions at the point of use (useCameraPermissions, Location.request...) and handle denied and undetermined; Android 13+/14 split media permissions, so check the app config's declared permissions when a feature works on iOS only.
  • Use expo-* packages that support the app's SDK version; install with npx expo install <pkg> so versions match the SDK, never a bare npm i.
  • Config-plugin changes (app.json / app.config.*) need a new native build; say so instead of expecting a reload to pick them up.

Verify without starting anything

Never start Metro, an emulator or Expo Go yourself; the user runs the app. Use commands that exit, from the app root:

npx tsc --noEmit            # types
npm run lint                # or the app's script (site-sync-vista: lint, quality:check)
npm test -- --watch=false   # only if the app has a test script; check package.json first

Name what still needs a device check (permissions, camera, platform-specific layout) in the report.

Not this skill

Web React (frontend-standards-always-follow), backend contracts (api-contract-standards), store slice conventions in the repo's own docs.

Version History

  • 2315578 Current 2026-10-18 19:21

Same Skill Collection

skills/agentation-react/SKILL.md
skills/baseline-ui/SKILL.md
skills/brand/SKILL.md
skills/context7-mcp/SKILL.md
skills/create-design-md/SKILL.md
skills/debug-broken-ui/SKILL.md
skills/design-system-compliance/SKILL.md
skills/design-taste-frontend/SKILL.md
skills/design/SKILL.md
skills/docker-compose/SKILL.md
skills/ensure-repo-docs/SKILL.md
skills/false-green-tests/SKILL.md
skills/fastify-patterns/SKILL.md
skills/fixing-accessibility/SKILL.md
skills/fixing-metadata/SKILL.md
skills/fixing-motion-performance/SKILL.md
skills/grill-with-docs/SKILL.md
skills/higgsfield-brandkit/SKILL.md
skills/higgsfield-video-explainer/SKILL.md
skills/higgsfield-youtube-thumbnail/SKILL.md
skills/idea-refine/SKILL.md
skills/img2threejs/SKILL.md
skills/improve-ui/SKILL.md
skills/invoke-audit/SKILL.md
skills/invoke-clean/SKILL.md
skills/invoke-debug/SKILL.md
skills/invoke-design/SKILL.md
skills/invoke-docs/SKILL.md
skills/invoke-impl/SKILL.md
skills/invoke-plan/SKILL.md
skills/invoke-refactor/SKILL.md
skills/invoke-review/SKILL.md
skills/invoke-security/SKILL.md
skills/invoke-session/SKILL.md
skills/invoke-spec/SKILL.md
skills/invoke-status/SKILL.md
skills/invoke-test/SKILL.md
skills/invoke-update/SKILL.md
skills/invoke-verify/SKILL.md
skills/invoke/SKILL.md
skills/kokonutui/SKILL.md
skills/mmx-cli/h3-video/SKILL.md
skills/modern-web-guidance/SKILL.md
skills/mongoose-patterns/SKILL.md
skills/no-ai-slop/SKILL.md
skills/slides/SKILL.md
skills/test-error-states/SKILL.md
skills/threejs-r3f/SKILL.md
skills/to-issues/SKILL.md

Metadata

Files
0
Version
2315578
Hash
f465d08d
Indexed
2026-10-18 19:21

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-19 05:35
浙ICP备14020137号-1