[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EEZ3HC84CHJ3RFCQFB0HXQ":3,"skill-same:01M6EEZ3HC84CHJ3RFCQFB0HXQ":48},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":21,"linkOnly":22,"markdownContent":23,"markdownBody":23,"frontMatter":24,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M6EEZ3HC84CHJ3RFCQFB0HXQ","expo-router",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Fexpo-router\u002FSKILL.md",[],[18,19,20],"router","expo","expo router","2026-11-10 10:12:30",false,"# Expo Router\n\n## Overview\n\nExpo Router brings file-based routing to React Native — the same pattern as Next.js but for mobile apps. Drop a file in `app\u002F`, get a screen. Folder structure defines navigation hierarchy: stacks, tabs, drawers, and modals. Deep linking works automatically — every route has a URL. Build iOS, Android, and web from one codebase with the same routing system.\n\n## When to Use\n\n- Building a React Native \u002F Expo app that needs navigation\n- Want file-based routing instead of manual React Navigation config\n- Need deep linking and universal links without extra setup\n- Building a universal app (iOS + Android + Web)\n- Migrating from React Navigation to a simpler routing model\n\n## Instructions\n\n### Setup\n\n```bash\nnpx create-expo-app@latest my-app --template tabs\ncd my-app\nnpx expo start\n```\n\n### File-Based Routes\n\n```\napp\u002F\n├── _layout.tsx          # Root layout (wraps all screens)\n├── index.tsx            # \u002F (home screen)\n├── about.tsx            # \u002Fabout\n├── (tabs)\u002F              # Tab navigation group\n│   ├── _layout.tsx      # Tab bar configuration\n│   ├── index.tsx        # First tab (home)\n│   ├── explore.tsx      # Second tab\n│   └── profile.tsx      # Third tab\n├── settings\u002F\n│   ├── _layout.tsx      # Stack layout for settings\n│   ├── index.tsx        # \u002Fsettings\n│   ├── account.tsx      # \u002Fsettings\u002Faccount\n│   └── notifications.tsx # \u002Fsettings\u002Fnotifications\n├── [id].tsx             # \u002F123 (dynamic route)\n├── post\u002F\n│   └── [slug].tsx       # \u002Fpost\u002Fmy-first-post\n└── +not-found.tsx       # 404 screen\n```\n\n### Root Layout\n\n```tsx\n\u002F\u002F app\u002F_layout.tsx — Root layout with stack navigation\nimport { Stack } from \"expo-router\";\n\nexport default function RootLayout() {\n  return (\n    \u003CStack>\n      \u003CStack.Screen name=\"(tabs)\" options={{ headerShown: false }} \u002F>\n      \u003CStack.Screen name=\"settings\" options={{ title: \"Settings\" }} \u002F>\n      \u003CStack.Screen\n        name=\"modal\"\n        options={{ presentation: \"modal\", title: \"Info\" }}\n      \u002F>\n    \u003C\u002FStack>\n  );\n}\n```\n\n### Tab Navigation\n\n```tsx\n\u002F\u002F app\u002F(tabs)\u002F_layout.tsx — Bottom tab bar\nimport { Tabs } from \"expo-router\";\nimport { Ionicons } from \"@expo\u002Fvector-icons\";\n\nexport default function TabLayout() {\n  return (\n    \u003CTabs screenOptions={{ tabBarActiveTintColor: \"#007AFF\" }}>\n      \u003CTabs.Screen\n        name=\"index\"\n        options={{\n          title: \"Home\",\n          tabBarIcon: ({ color }) => \u003CIonicons name=\"home\" size={24} color={color} \u002F>,\n        }}\n      \u002F>\n      \u003CTabs.Screen\n        name=\"explore\"\n        options={{\n          title: \"Explore\",\n          tabBarIcon: ({ color }) => \u003CIonicons name=\"compass\" size={24} color={color} \u002F>,\n        }}\n      \u002F>\n      \u003CTabs.Screen\n        name=\"profile\"\n        options={{\n          title: \"Profile\",\n          tabBarIcon: ({ color }) => \u003CIonicons name=\"person\" size={24} color={color} \u002F>,\n        }}\n      \u002F>\n    \u003C\u002FTabs>\n  );\n}\n```\n\n### Navigation and Dynamic Routes\n\n```tsx\n\u002F\u002F app\u002F(tabs)\u002Findex.tsx — Home screen with navigation\nimport { Link, router } from \"expo-router\";\nimport { View, Text, Pressable, FlatList } from \"react-native\";\n\nexport default function HomeScreen() {\n  const posts = usePosts();\n\n  return (\n    \u003CView>\n      {\u002F* Declarative navigation *\u002F}\n      \u003CLink href=\"\u002Fabout\">About\u003C\u002FLink>\n      \u003CLink href=\"\u002Fsettings\">Settings\u003C\u002FLink>\n      \u003CLink href=\"\u002Fpost\u002Fhello-world\">My Post\u003C\u002FLink>\n\n      {\u002F* Programmatic navigation *\u002F}\n      \u003CPressable onPress={() => router.push(\"\u002Fsettings\u002Faccount\")}>\n        \u003CText>Go to Account\u003C\u002FText>\n      \u003C\u002FPressable>\n\n      {\u002F* Dynamic routes *\u002F}\n      \u003CFlatList\n        data={posts}\n        renderItem={({ item }) => (\n          \u003CLink href={`\u002Fpost\u002F${item.slug}`}>\n            \u003CText>{item.title}\u003C\u002FText>\n          \u003C\u002FLink>\n        )}\n      \u002F>\n    \u003C\u002FView>\n  );\n}\n```\n\n```tsx\n\u002F\u002F app\u002Fpost\u002F[slug].tsx — Dynamic route screen\nimport { useLocalSearchParams } from \"expo-router\";\n\nexport default function PostScreen() {\n  const { slug } = useLocalSearchParams\u003C{ slug: string }>();\n  const post = usePost(slug);\n\n  return (\n    \u003CView>\n      \u003CText style={{ fontSize: 24 }}>{post?.title}\u003C\u002FText>\n      \u003CText>{post?.content}\u003C\u002FText>\n    \u003C\u002FView>\n  );\n}\n```\n\n### Deep Linking (Automatic)\n\n```json\n\u002F\u002F app.json — Deep linking just works\n{\n  \"expo\": {\n    \"scheme\": \"myapp\",\n    \"web\": { \"bundler\": \"metro\" }\n  }\n}\n```\n\nEvery route automatically gets a URL:\n- `myapp:\u002F\u002F` → Home screen\n- `myapp:\u002F\u002Fpost\u002Fhello-world` → Post screen\n- `https:\u002F\u002Fmyapp.com\u002Fpost\u002Fhello-world` → Same screen (universal links)\n\n## Examples\n\n### Example 1: Build a social media app navigation\n\n**User prompt:** \"Set up navigation for a social app — tabs for feed\u002Fsearch\u002Fprofile, stack for post details, and modal for creating posts.\"\n\nThe agent will create tab layout, nested stack routes, and a modal route with proper animations and deep linking.\n\n### Example 2: Add authentication flow\n\n**User prompt:** \"Add login\u002Fsignup screens that show before the main app tabs.\"\n\nThe agent will create a route group for auth screens, use layout redirection based on auth state, and protect tab routes.\n\n## Guidelines\n\n- **File = route** — `app\u002Fabout.tsx` = `\u002Fabout` screen\n- **`_layout.tsx` for navigation containers** — Stack, Tabs, Drawer\n- **`(group)` for route groups** — organize without affecting URL\n- **`[param]` for dynamic routes** — access via `useLocalSearchParams`\n- **Deep linking is automatic** — every route has a URL\n- **`Link` for declarative, `router` for programmatic** — navigation\n- **`+not-found.tsx` for 404** — catches unmatched routes\n- **Typed routes** — `href` autocompletes with TypeScript\n- **Web support** — same routes work on web with `expo-router`\n- **`presentation: \"modal\"` in options** — for modal screens\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002FTerminalSkills\u002Fskills\u002Fexpo-router",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill expo-router",{"tool":40,"command":41},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill expo-router",{"tool":43,"command":44},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill expo-router","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Fexpo-router\u002FSKILL.md",true,[],[49,58,67,76,82,88],{"skillNo":50,"name":51,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":21},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[55,56,57],"model","model hierarchy","model hierarchy skill",{"skillNo":59,"name":60,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":21},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[64,65,66],"MCP","zoom","zoom mcp",{"skillNo":68,"name":69,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":21},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[73,74,75,65],"sdk","zoom apps sdk","apps",{"skillNo":77,"name":78,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":21},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[78],{"skillNo":83,"name":84,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":21},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[84],{"skillNo":89,"name":90,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":21},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[90]]