Chuyển đến nội dung
Skillpedia
Ứng dụng di động7.1k · #13532

react-native-expert

Skill này làm gì

Skill này hướng dẫn AI xây các ứng dụng điện thoại đa nền tảng bằng React Native và Expo. Nó nhấn mạnh màn hình có cảm giác như ứng dụng gốc, danh sách nhanh và mã riêng cho nền tảng iPhone và Android. Phù hợp với lập trình viên xây ứng dụng di động.

Khi nào nên dùng

  • ✓Khi bạn đang xây một ứng dụng React Native hoặc Expo cho iPhone và Android.
  • ✓Khi một danh sách hoặc màn hình cuộn trong ứng dụng di động của bạn có vẻ chậm.
  • ✓Khi bạn cần điều hướng, hoạt ảnh hoặc module gốc trong một dự án Expo.

Liên kết skill

https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(development)/react-native-expert/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(development)/react-native-expert/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Xây một màn hình cài đặt cho ứng dụng Expo của tôi với điều hướng gốc, và kiểm tra nó chạy đúng trên cả iPhone và Android.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

AI làm rõ yêu cầu, ưu tiên các thành phần gốc hơn các giải pháp thay thế bằng JavaScript, giữ mã đơn giản và kiểm tra kết quả trên cả hai nền tảng.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

React Native Expert

Senior 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.

Core Principles

Apply these principles before writing any code:

  1. Understand before implementing. Clarify requirements, target platforms, and constraints. If the user's approach has issues, say so — do not be sycophantic.
  2. Simplicity first. Write the minimum code that solves the problem. No speculative abstractions, no premature flexibility. If 200 lines could be 50, rewrite it.
  3. 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.
  4. Surgical changes. When editing existing code, touch only what is necessary. Match existing style. Do not "improve" adjacent code unless asked.
  5. Goal-driven execution. Define what success looks like before implementing. Verify on both platforms.

Technology Stack (2026)

Layer Technology Version
Framework React Native 0.79+ (New Architecture default)
Platform Expo SDK 53+
Router Expo Router 4+
Language TypeScript 5.5+
React React 19 React Compiler enabled
Animation Reanimated 4+
Gestures Gesture Handler 2.20+
Lists LegendList (primary), FlashList (alternative) Latest
Images expo-image Latest
State Zustand (single store) or Jotai (atomic) 5+ / 2.10+
Data Fetching TanStack Query 5+
Storage MMKV (primary), SecureStore (sensitive data) Latest
Navigation Native Stack, Native Bottom Tabs Latest
Styling StyleSheet.create, NativeWind (optional) Latest

Key architectural facts for 2026:

  • New Architecture (Fabric + TurboModules) is the default — no opt-in needed.
  • React Compiler handles memoization automatically — memo(), useCallback(), and useMemo() are rarely needed for memoization purposes, but object reference stability still matters for lists.
  • Use .get() and .set() on Reanimated shared values, never .value directly.
  • getBoundingClientRect() is available for synchronous measurement (RN 0.82+).
  • CSS boxShadow, gap, and experimental_backgroundImage replace legacy shadow/margin/gradient patterns.

Workflow

Follow this sequence for every implementation:

1. Setup

  • Expo Router for file-based routing, TypeScript strict mode
  • Read references/project-structure.md when setting up a new project

2. Structure

  • Feature-based organization: app/ for routes, components/ for UI, hooks/, services/, stores/
  • Read references/project-structure.md for the full recommended layout

3. Implement

  • Use native components first (native stack, native tabs, Pressable, expo-image)
  • Handle platform differences with Platform.select() or .ios.tsx/.android.tsx files
  • Read references/platform-handling.md for platform-specific patterns
  • Read references/expo-router.md for navigation and routing patterns

4. Optimize

  • Default to virtualized lists (LegendList > FlashList > FlatList, never ScrollView for dynamic lists)
  • Animate only transform and opacity — never layout properties
  • Use Zustand selectors over React Context in list items
  • Read references/performance-rules.md for the full 35+ rule catalog

5. Test

  • Test on both iOS and Android real devices
  • Verify keyboard handling, safe areas, and notch
Câu hỏi thường gặp

Nó có hoạt động với React Native thuần không?

Có. Nó bao gồm React Native cùng các công cụ Expo như Expo Router.

Nó có ưu tiên các phần gốc không?

Có. Nó ưu tiên thành phần gốc vì chúng nhanh hơn và có cảm giác đúng trên từng nền tảng.

Nó có kiểm tra trên cả hai nền tảng không?

Có. Nó yêu cầu kết quả được kiểm tra trên cả iOS và Android.

Chi tiết

Mô tả gốc của tác giả

Senior React Native and Expo engineer for building production-ready cross-platform mobile apps. Use when building React Native components, implementing navigation with Expo Router, optimizing list and scroll performance, working with animations via Reanimated, handling platform-specific code (iOS/Android), integrating native modules, or structuring Expo projects. Triggers on React Native, Expo, mobile app, iOS app, Android app, cross-platform, native module, FlatList, FlashList, LegendList, Reanimated, Expo Router, mobile performance, app store. Do NOT use for Flutter, web-only React, or backe

repo: tech-leads-club/agent-skills

Độ phổ biến

Sao GitHub
7.1k
Vị trí xếp hạng
#13532
Giấy phép
—
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự