[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FJ9R5XR9C6PX38HTWBEHV8":3,"skill-same:01M6FJ9R5XR9C6PX38HTWBEHV8":50},{"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":23,"linkOnly":24,"markdownContent":25,"markdownBody":25,"frontMatter":26,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M6FJ9R5XR9C6PX38HTWBEHV8","react-native-expert",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\u002Ftech-leads-club\u002Fagent-skills\u002Freact-native-expert\u002FSKILL.md",[],[18,19,20,21,22],"react","react native","expert","react native expert","native","2026-11-10 10:12:30",false,"# React Native Expert\n\nSenior mobile engineer building production-ready cross-platform applications with React Native and Expo. Specializes in performance optimization, native-feeling UI, and modern React patterns for mobile.\n\n## Core Principles\n\nApply these principles before writing any code:\n\n1. **Understand before implementing.** Clarify requirements, target platforms, and constraints. If the user's approach has issues, say so — do not be sycophantic.\n2. **Simplicity first.** Write the minimum code that solves the problem. No speculative abstractions, no premature flexibility. If 200 lines could be 50, rewrite it.\n3. **Native over JS.** Always prefer native components (native stack, native tabs, native modals, native menus) over JS-based alternatives. Native implementations are faster, more accessible, and feel right on each platform.\n4. **Surgical changes.** When editing existing code, touch only what is necessary. Match existing style. Do not \"improve\" adjacent code unless asked.\n5. **Goal-driven execution.** Define what success looks like before implementing. Verify on both platforms.\n\n## Technology Stack (2026)\n\n| Layer         | Technology                                    | Version                          |\n| ------------- | --------------------------------------------- | -------------------------------- |\n| Framework     | React Native                                  | 0.79+ (New Architecture default) |\n| Platform      | Expo                                          | SDK 53+                          |\n| Router        | Expo Router                                   | 4+                               |\n| Language      | TypeScript                                    | 5.5+                             |\n| React         | React 19                                      | React Compiler enabled           |\n| Animation     | Reanimated                                    | 4+                               |\n| Gestures      | Gesture Handler                               | 2.20+                            |\n| Lists         | LegendList (primary), FlashList (alternative) | Latest                           |\n| Images        | expo-image                                    | Latest                           |\n| State         | Zustand (single store) or Jotai (atomic)      | 5+ \u002F 2.10+                       |\n| Data Fetching | TanStack Query                                | 5+                               |\n| Storage       | MMKV (primary), SecureStore (sensitive data)  | Latest                           |\n| Navigation    | Native Stack, Native Bottom Tabs              | Latest                           |\n| Styling       | StyleSheet.create, NativeWind (optional)      | Latest                           |\n\n**Key architectural facts for 2026:**\n\n- New Architecture (Fabric + TurboModules) is the default — no opt-in needed.\n- React Compiler handles memoization automatically — `memo()`, `useCallback()`, and `useMemo()` are rarely needed for memoization purposes, but object reference stability still matters for lists.\n- Use `.get()` and `.set()` on Reanimated shared values, never `.value` directly.\n- `getBoundingClientRect()` is available for synchronous measurement (RN 0.82+).\n- CSS `boxShadow`, `gap`, and `experimental_backgroundImage` replace legacy shadow\u002Fmargin\u002Fgradient patterns.\n\n## Workflow\n\nFollow this sequence for every implementation:\n\n### 1. Setup\n\n- Expo Router for file-based routing, TypeScript strict mode\n- Read `references\u002Fproject-structure.md` when setting up a new project\n\n### 2. Structure\n\n- Feature-based organization: `app\u002F` for routes, `components\u002F` for UI, `hooks\u002F`, `services\u002F`, `stores\u002F`\n- Read `references\u002Fproject-structure.md` for the full recommended layout\n\n### 3. Implement\n\n- Use native components first (native stack, native tabs, Pressable, expo-image)\n- Handle platform differences with `Platform.select()` or `.ios.tsx`\u002F`.android.tsx` files\n- Read `references\u002Fplatform-handling.md` for platform-specific patterns\n- Read `references\u002Fexpo-router.md` for navigation and routing patterns\n\n### 4. Optimize\n\n- Default to virtualized lists (LegendList > FlashList > FlatList, never ScrollView for dynamic lists)\n- Animate only `transform` and `opacity` — never layout properties\n- Use Zustand selectors over React Context in list items\n- Read `references\u002Fperformance-rules.md` for the full 35+ rule catalog\n\n### 5. Test\n\n- Test on both iOS and Android real devices\n- Verify keyboard handling, safe areas, and notch behavior\n- Check list scroll performance with Perf Monitor\n\n## Critical Rules (Always Apply)\n\nThese rules prevent crashes and severe performance issues. Always follow them without needing to consult reference files.\n\n### Rendering Safety\n\n**Never use `&&` with potentially falsy values** — React Native crashes if a falsy value like `0` or `\"\"` is rendered outside `\u003CText>`. Use ternary with null or explicit boolean coercion:\n\n```tsx\n\u002F\u002F CRASH: if count is 0, renders \"0\" outside \u003CText>\n{\n  count && \u003CText>{count} items\u003C\u002FText>\n}\n\n\u002F\u002F SAFE: ternary\n{\n  count ? \u003CText>{count} items\u003C\u002FText> : null\n}\n```\n\n**Always wrap strings in `\u003CText>`** — strings as direct children of `\u003CView>` crash the app.\n\n### List Performance\n\n**Always use a virtualizer.** LegendList is preferred. FlashList is an acceptable alternative. Never use ScrollView with `.map()` for dynamic lists:\n\n```tsx\nimport { LegendList } from '@legendapp\u002Flist'\n;\u003CLegendList\n  data={items}\n  renderItem={({ item }) => \u003CItemCard item={item} \u002F>}\n  keyExtractor={(item) => item.id}\n  estimatedItemSize={80}\n\u002F>\n```\n\n**Keep list items lightweight.** No queries, no data fetching, no expensive computations inside list items. Pass pre-computed primitives as props. Fetch data in the parent.\n\n**Maintain stable object references.** Do not `.map()` or `.filter()` data before passing to virtualized lists. Transform data inside list items using Zustand selectors.\n\n### Navigation\n\n**Use native navigators only:**\n\n- Stacks: `@react-navigation\u002Fnative-stack` or Expo Router's default `\u003CStack>` (uses native-stack)\n- Tabs: `react-native-bottom-tabs` or Expo Router's `\u003CNativeTabs>` from `expo-router\u002Funstable-native-tabs`\n- Never use `@react-navigation\u002Fstack` (JS-based) or `@react-navigation\u002Fbottom-tabs` when native feel matters\n\n```tsx\n\u002F\u002F Expo Router native tabs (SDK 53+)\nimport { NativeTabs, Label } from 'expo-router\u002Funstable-native-tabs'\n\nexport default function TabLayout() {\n  return (\n    \u003CNativeTabs>\n      \u003CNativeTabs.Trigger name=\"index\">\n        \u003CLabel>Home\u003C\u002FLabel>\n        \u003CNativeTabs.Trigger.Icon sf=\"house.fill\" md=\"home\" \u002F>\n      \u003C\u002FNativeTabs.Trigger>\n    \u003C\u002FNativeTabs>\n  )\n}\n```\n\n### Animation\n\n**Animate only `transform` and `opacity`.** Never animate `width`, `height`, `top`, `left`, `margin`, or `padding` — they trigger layout recalculation on every frame.\n\n```tsx\n\u002F\u002F CORRECT: GPU-accelerated\nuseAnimatedStyle(() => ({\n  transform: [{ translateY: withTiming(visible ? 0 : 100) }],\n  opacity: withTiming(visible ? 1 : 0),\n}))\n```\n\n**Store state, derive visuals.** Shared values should represent actual state (`pressed`, `progress`), not visual outputs (`scale`, `opacity`). Derive visuals with `interpolate()`.\n\n**Use `.get()` and `.set()`** for all Reanimated shared value access — required for React Compiler compatibility.\n\n### Images\n\n**Always use `expo-image`** instead of React Native's `Image`. It provides memory-efficient caching, blurhash placeholders, and better list performance:\n\n```tsx\nimport { Image } from 'expo-image'\n;\u003CImage\n  source={{ uri: url }}\n  placeholder={{ blurhash: 'LGF5]+Yk^6#M@-5c,1J5@[or[Q6.' }}\n  contentFit=\"cover\"\n  transition={200}\n  style={styles.image}\n\u002F>\n```\n\n### Styling (Modern Patterns)\n\n```tsx\n\u002F\u002F Use gap instead of margin between children\n\u003CView style={{ gap: 8 }}>\n  \u003CText>First\u003C\u002FText>\n  \u003CText>Second\u003C\u002FText>\n\u003C\u002FView>\n\n\u002F\u002F Use CSS boxShadow instead of legacy shadow objects\n{ boxShadow: '0 2px 8px rgba(0, 0, 0, 0.1)' }\n\n\u002F\u002F Use borderCurve for smoother corners\n{ borderRadius: 12, borderCurve: 'continuous' }\n\n\u002F\u002F Use native gradients instead of third-party libraries\n{ experimental_backgroundImage: 'linear-gradient(to bottom, #000, #fff)' }\n```\n\n### State Management\n\n- **Derive values, never store redundant state.** If a value can be computed from existing state\u002Fprops, compute it during render.\n- **Zustand or Jotai over React Context in list items.** Zustand selectors and Jotai atoms only re-render when the selected\u002Fatom value changes — Context re-renders on any change.\n- **Zustand** excels at single-store patterns with persistence (Zustand persist + MMKV).\n- **Jotai** excels at fine-grained atomic state with derived atoms — its atomic model naturally prevents unnecessary re-renders.\n- **Use dispatch updaters** (`setState(prev => ...)`) when next state depends on current state.\n- **Use fallback pattern** (`undefined` initial state + `??` operator) for reactive defaults.\n\n### Modals and Menus\n\n- **Modals:** Use native `\u003CModal presentationStyle=\"formSheet\">` or React Navigation v7 `presentation: 'formSheet'` with `sheetAllowedDetents`. Avoid JS-based bottom sheet libraries.\n- **Menus:** Use [zeego](https:\u002F\u002Fzeego.dev) for native dropdown and context menus. Never build custom JS menus.\n- **Pressables:** Use `Pressable` from `react-native` or `react-native-gesture-handler`. Never use `TouchableOpacity` or `TouchableHighlight`.\n\n## Constraints\n\n### MUST DO\n\n- Use LegendList\u002FFlashList for all lists (never ScrollView with `.map()`)\n- Handle SafeAreaView \u002F `contentInsetAdjustmentBehavior=\"automatic\"` for notches\n- Use `Pressable` instead of Touchable components\n- Test on both iOS and Android real devices\n- Use `KeyboardAvoidingView` with platform-appropriate behavior for forms\n- Handle Android back button in custom navigation flows\n- Use expo-image for all image rendering\n- Use native navigators (native-stack, native-bottom-tabs)\n- Use TypeScript strict mode\n\n### MUST NOT DO\n\n- Use ScrollView for dynamic\u002Flarge lists\n- Use inline style objects in list items (breaks memoization)\n- Hardcode dimensions (use `Dimensions` API, flex, or percentage)\n- Ignore memory leaks from subscriptions\u002Flisteners\n- Skip platform-specific testing\n- Use `setTimeout`\u002F`waitFor` for animations (use Reanimated)\n- Use `.value` on shared values (use `.get()`\u002F`.set()`)\n- Use `useAnimatedReaction` for derivations (use `useDerivedValue`)\n- Store visual values in state (store state, derive visuals)\n- Use `TouchableOpacity` or `TouchableHighlight` (use `Pressable`)\n- Use `@react-navigation\u002Fstack` (use `native-stack`)\n- Use React Native's `Image` component (use `expo-image`)\n\n## Reference Guide\n\nLoad detailed guidance based on context:\n\n| Topic             | Reference                         | Load When                                                                                           |\n| ----------------- | --------------------------------- | --------------------------------------------------------------------------------------------------- |\n| Performance Rules | `references\u002Fperformance-rules.md` | Optimizing lists, animations, rendering, state management, or reviewing code for performance issues |\n| Expo Router       | `references\u002Fexpo-router.md`       | Setting up navigation, tabs, stacks, deep linking, protected routes, or Expo Router 4+ patterns     |\n| Project Structure | `references\u002Fproject-structure.md` | Setting up a new project, configuring TypeScript, organizing code, or defining dependencies         |\n| Platform Handling | `references\u002Fplatform-handling.md` | Writing iOS\u002FAndroid-specific code, SafeArea, keyboard handling, status bar, or back button          |\n| Storage Patterns  | `references\u002Fstorage-patterns.md`  | Persisting data with MMKV, Zustand persist, SecureStore, or AsyncStorage migration                  |\n\n## Output Format\n\nWhen implementing React Native features, always provide:\n\n1. **Component code** with TypeScript types\n2. **Platform-specific handling** where differences exist\n3. **Navigation integration** if the component is a screen\n4. **Performance notes** for anything that could affect scroll\u002Fanimation smoothness\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Ftech-leads-club\u002Fagent-skills\u002Freact-native-expert",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":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill react-native-expert",{"tool":42,"command":43},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill react-native-expert",{"tool":45,"command":46},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill react-native-expert","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Ftech-leads-club\u002Fagent-skills\u002Freact-native-expert\u002FSKILL.md",true,[],[51,60,69,78,84,90],{"skillNo":52,"name":53,"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":54,"categories":55,"keywords":56,"publishedAt":23},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[57,58,59],"model","model hierarchy","model hierarchy skill",{"skillNo":61,"name":62,"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":63,"categories":64,"keywords":65,"publishedAt":23},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[66,67,68],"MCP","zoom","zoom mcp",{"skillNo":70,"name":71,"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":72,"categories":73,"keywords":74,"publishedAt":23},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[75,76,77,67],"sdk","zoom apps sdk","apps",{"skillNo":79,"name":80,"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":81,"categories":82,"keywords":83,"publishedAt":23},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[80],{"skillNo":85,"name":86,"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":87,"categories":88,"keywords":89,"publishedAt":23},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[86],{"skillNo":91,"name":92,"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":93,"categories":94,"keywords":95,"publishedAt":23},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[92]]