Chuyển đến nội dung
Skillpedia
Ứng dụng di động14k · #11299

react-native-dev

Skill này làm gì

Skill này là hướng dẫn thực tế để xây ứng dụng di động sẵn sàng sản xuất bằng React Native và Expo. Skill dành cho lập trình viên cần hướng dẫn cho toàn bộ ứng dụng, từ màn hình đến triển khai.

Khi nào nên dùng

  • ✓Khi bạn xây ứng dụng React Native hoặc Expo cho iPhone hoặc Android.
  • ✓Khi bạn cần hoạt ảnh, điều hướng hoặc biểu mẫu trong ứng dụng di động.
  • ✓Khi ứng dụng của bạn chạy chậm hoặc bạn cần lên kế hoạch triển khai và cập nhật.

Liên kết skill

https://github.com/MiniMax-AI/skills/blob/main/skills/react-native-dev/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/MiniMax-AI/skills/blob/main/skills/react-native-dev/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

“Tôi muốn xây ứng dụng React Native với điều hướng dạng tab, biểu mẫu đăng nhập và hoạt ảnh mượt.”

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

Cách hoạt động

Skill liệt kê các hướng dẫn tham khảo cho từng lĩnh vực, như điều hướng, kiểu dáng, hoạt ảnh và trạng thái. Agent đọc hướng dẫn liên quan và áp dụng các mẫu vào ứng dụng của bạn.

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 & Expo Development Guide

A practical guide for building production-ready React Native and Expo applications. Covers UI, animations, state, testing, performance, and deployment.

References

Consult these resources as needed:

Quick Reference

Component Preferences

Purpose Use Instead of
Lists FlashList (@shopify/flash-list) + memo items FlatList (no view recycling)
Images expo-image RN <Image> (no cache, no WebP)
Press Pressable TouchableOpacity (legacy)
Audio expo-audio expo-av (deprecated)
Video expo-video expo-av (deprecated)
Animations Reanimated 3 RN Animated API (limited)
Gestures Gesture Handler PanResponder (legacy)
Platform check process.env.EXPO_OS Platform.OS
Context React.use() React.useContext() (React 18)
Safe area scroll contentInsetAdjustmentBehavior="automatic" <SafeAreaView>
SF Symbols expo-image with source="sf:name" expo-symbols

Scaling Up

Situation Consider
Long lists with scroll jank Virtualized list libraries (e.g. FlashList)
Want Tailwind-style classes NativeWind v4
High-frequency storage reads Sync-based storage (e.g. MMKV)
New project with Expo Expo Router over bare React Navigation

State Management

State Type Solution
Local UI state useState / useReducer
Shared app state Zustand or Jotai
Server / async data React Query
Form state React Hook Form + Zod

Performance Priorities

Priority Issue Fix
CRITICAL Long list jank FlashList + memoized items
CRITICAL Large bundle Avoid barrel imports, enable R8
HIGH Too many re-renders Zustand selectors, React Compiler
HIGH Slow startup Disable bundle compression, native nav
MEDIUM Animation drops Only animate transform/opacity

New Project Init

# 1. Create project
npx create-expo-app@latest my-app --template blank-typescript
cd my-app

# 2. Install Expo Router + core deps
npx expo install expo-router react-native-safe-area-context react-native-screens

# 3. (Optional) Common extras
npx expo install expo-image react-native-reanimated react-native-gesture-handler

Then configure:

  1. Set entry point in package.json: "main": "expo-router/entry"
  2. Add scheme in app.json: "scheme": "my-app"
  3. Delete App.tsx and index.ts
  4. Create app/_layout.tsx as root Stack layout
  5. Create app/(tabs)/_layout.tsx for tab navigation
  6. Create route files in app/(tabs)/ (see navigation.md)

For web support, also install: npx expo install react-native-web react-dom @expo/metro-runtime

Core Principles

**Consult re

Câu hỏi thường gặp

Skill có đề cập Expo không?

Có. Skill bao gồm Expo Router, các tính năng gốc và thiết lập dự án cho Expo.

Nó có giúp kiểm thử không?

Có. Skill bao gồm kiểm thử và tối ưu hiệu năng.

Còn nâng cấp và phát hành thì sao?

Skill bao gồm cấu trúc dự án, triển khai, nâng cấp SDK và CI/CD.

Chi tiết

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

React Native and Expo development guide covering components, styling, animations, navigation, state management, forms, networking, performance optimization, testing, native capabilities, and engineering (project structure, deployment, SDK upgrades, CI/CD). Use when: building React Native or Expo apps, implementing animations or native UI, managing state, fetching data, writing tests, optimizing performance, deploying to App Store/Play Store, setting up CI/CD, upgrading Expo SDK, or configuring Tailwind/NativeWind.

repo: MiniMax-AI/skills

Độ phổ biến

Sao GitHub
14k
Vị trí xếp hạng
#11299
Giấy phép
MIT
Cập nhật
18/4/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ự