Communitygithub.com

minimax-ai/react-native-dev

React Native 与 Expo 开发指南,涵盖组件、样式、动画、导航、状态管理、表单、网络、性能优化、测试、原生能力及工程实践(项目结构、部署、SDK 升级、CI/CD)。适用于构建 React Native 或 Expo 应用、实现动画或原生 UI、管理状态、获取数据、编写测试、优化性能、发布到 App Store/Play Store、配置 CI/CD、升级 Expo SDK 或配置 Tailwind/NativeWind 等场景。

react-native-dev 是什么?

本技能提供了全面的 React Native 与 Expo 开发参考指南,覆盖从基础组件、样式到高级动画、导航、状态管理、网络请求和性能优化的核心知识。它特别强调了工程实践部分,包括项目结构设计、部署流程、Expo SDK 升级策略以及 CI/CD 管线的搭建,帮助开发者进行端到端的应用开发。该指南支持所有使用 React Native 或 Expo 框架的项目,并且集成了对 Tailwind/NativeWind 样式解决方案的具体配置说明。此外,它还深入讲解了原生模块调用、表单处理、单元测试编写等关键主题,确保开发者能构建出高质量、可维护的移动应用。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/minimax-ai/skills/tree/main/skills/react-native-dev

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

react-native-dev 是做什么的?

React Native 与 Expo 开发指南,涵盖组件、样式、动画、导航、状态管理、表单、网络、性能优化、测试、原生能力及工程实践(项目结构、部署、SDK 升级、CI/CD)。适用于构建 React Native 或 Expo 应用、实现动画或原生 UI、管理状态、获取数据、编写测试、优化性能、发布到 App Store/Play Store、配置 CI/CD、升级 Expo SDK 或配置 Tailwind/NativeWind 等场景。

组件

  • View、Text、Image、ScrollView 等基础组件用法与属性。
  • 自定义组件的创建、属性传递与状态管理。

样式

  • React Native 的 Flexbox 布局系统。
  • StyleSheet 的创建与复用。
  • 使用 NativeWind 或 Tailwind 进行原子化样式管理。

动画

  • 使用 Animated API 实现简单动画。
  • 使用 react-native-reanimated 实现高性能动画。
  • 过渡与手势动画的结合。

导航

  • 使用 React Navigation 栈导航、标签导航和抽屉导航。
  • 导航参数传递与深层链接配置。

状态管理

  • React 内置的 useState 与 useReducer。
  • 上下文 (Context) 与全局状态。
  • 第三方库如 Redux、MobX、Zustand 的使用场景。

表单

  • 受控组件与表单验证。
  • 使用 react-hook-form 或 Formik 简化表单处理。

网络

  • 使用 fetch 或 axios 进行 API 调用。
  • WebSocket 与实时通信。
  • 离线缓存策略。

性能优化

  • 使用 React.memo、useMemo、useCallback 避免不必要的渲染。
  • FlatList 的虚拟化与懒加载优化。
  • 分析工具如 React DevTools 与 Flipper。

测试

  • 使用 Jest 进行单元测试。
  • 使用 React Native Testing Library 进行组件测试。
  • E2E 测试:Detox 或 Appium。

原生能力

  • 调用摄像头、位置、通知等原生模块。
  • 编写原生模块桥接 (Bridging) 或使用 Expo 模块 API。
  • 权限管理。

工程实践

项目结构

  • 推荐的功能/模块化目录结构。
  • 别名导入(如 @components)配置。

部署

  • iOS:App Store Connect 配置与提交。
  • Android:Google Play 控制台配置与 AAB 构建。
  • OTA 更新(Expo Updates 或 CodePush)。

SDK 升级

  • Expo SDK 升级流程(expo upgrade)。
  • 原生依赖兼容性检查。
  • 迁移注意事项。

CI/CD

  • GitHub Actions / GitLab CI 配置示例。
  • 自动化构建、测试与发布流程。
  • EAS Build 与 EAS Submit 使用指南。

配置 Tailwind/NativeWind

  • 安装 nativewind 并配置 tailwind.config.js。
  • 在 React Native 中使用 Tailwind 类名。
  • 自定义主题与暗模式支持。

提示:使用本指南时,根据具体需求选择对应章节查阅,建议结合官方文档与最新社区实践。

Individual skills in this repo

This repo contains 14 individual skills — each has its own dedicated page.

minimax-ai/android-native-dev

Android native application development and UI design guide. Covers Material Design 3, Kotlin/Compose development, project configuration, accessibility, and build troubleshooting. Read this before Android native application development.

minimax-ai/flutter-dev

Flutter cross-platform development guide covering widget patterns, Riverpod/Bloc state management, GoRouter navigation, performance optimization, and platform-specific implementations. Includes const optimization, responsive layouts, testing strategies, and DevTools profiling. Use when: building Flutter apps, implementing state management (Riverpod/Bloc), setting up GoRouter navigation, creating custom widgets, optimizing performance, writing widget tests, cross-platform development.

minimax-ai/frontend-dev

Full-stack frontend development combining premium UI design, cinematic animations, AI-generated media assets, persuasive copywriting, and visual art. Builds complete, visually striking web pages with real media, advanced motion, and compelling copy. Use when: building landing pages, marketing sites, product pages, dashboards, generating media assets (image/video/audio/music), writing conversion copy, creating generative art, or implementing cinematic scroll animations.

minimax-ai/fullstack-dev

Full-stack backend architecture and frontend-backend integration guide. TRIGGER when: building a full-stack app, creating REST API with frontend, scaffolding backend service, building todo app, building CRUD app, building real-time app, building chat app, Express + React, Next.js API, Node.js backend, Python backend, Go backend, designing service layers, implementing error handling, managing config/auth, setting up API clients, implementing auth flows, handling file uploads, adding real-time features (SSE/WebSocket), hardening for production. DO NOT TRIGGER when: pure frontend UI work, pure CSS/styling, database schema only.

minimax-ai/gif-sticker-maker

Convert photos (people, pets, objects, logos) into 4 animated GIF stickers with captions. Use when: user wants to create cartoon stickers, GIF expressions, emoji packs, animated avatars, or convert photos to Funko Pop / Pop Mart blind box style animations. Triggers: sticker, GIF, cartoon, emoji, expression pack, avatar animation.

minimax-ai/ios-application-dev

iOS application development guide covering UIKit, SnapKit, and SwiftUI. Includes touch targets, safe areas, navigation patterns, Dynamic Type, Dark Mode, accessibility, collection views, common UI components, and SwiftUI design guidelines. For detailed references on specific topics, see the reference files. Use when: developing iOS apps, implementing UI, reviewing iOS code, working with UIKit/SnapKit/SwiftUI layouts, building iPhone interfaces, Swift mobile development, Apple HIG compliance, iOS accessibility implementation.

minimax-ai/minimax-docx

Professional DOCX document creation, editing, and formatting using OpenXML SDK (.NET). Three pipelines: (A) create new documents from scratch, (B) fill/edit content in existing documents, (C) apply template formatting with XSD validation gate-check. MUST use this skill whenever the user wants to produce, modify, or format a Word document — including when they say "write a report", "draft a proposal", "make a contract", "fill in this form", "reformat to match this template", or any task whose final output is a .docx file. Even if the user doesn't mention "docx" explicitly, if the task implies a printable/formal document, use this skill.

minimax-ai/minimax-pdf

Use this skill when visual quality and design identity matter for a PDF. CREATE (generate from scratch): "make a PDF", "generate a report", "write a proposal", "create a resume", "beautiful PDF", "professional document", "cover page", "polished PDF", "client-ready document". FILL (complete form fields): "fill in the form", "fill out this PDF", "complete the form fields", "write values into PDF", "what fields does this PDF have". REFORMAT (apply design to an existing doc): "reformat this document", "apply our style", "convert this Markdown/text to PDF", "make this doc look good", "re-style this PDF". This skill uses a token-based design system: color, typography, and spacing are derived from the document type and flow through every page. The output is print-ready. Prefer this skill when appearance matters, not just when any PDF output is needed.

minimax-ai/minimax-xlsx

Open, create, read, analyze, edit, or validate Excel/spreadsheet files (.xlsx, .xlsm, .csv, .tsv). Use when the user asks to create, build, modify, analyze, read, validate, or format any Excel spreadsheet, financial model, pivot table, or tabular data file. Covers: creating new xlsx from scratch, reading and analyzing existing files, editing existing xlsx with zero format loss, formula recalculation and validation, and applying professional financial formatting standards. Triggers on 'spreadsheet', 'Excel', '.xlsx', '.csv', 'pivot table', 'financial model', 'formula', or any request to produce tabular data in Excel format.

minimax-ai/mmx-cli

Use mmx to generate text, images, video, speech, and music via the MiniMax AI platform. Use when the user wants to create media content, chat with MiniMax models, perform web search, or manage MiniMax API resources from the terminal.

minimax-ai/pptx-generator

Generate, edit, and read PowerPoint presentations. Create from scratch with PptxGenJS (cover, TOC, content, section divider, summary slides), edit existing PPTX via XML workflows, or extract text with markitdown. Triggers: PPT, PPTX, PowerPoint, presentation, slide, deck, slides.

minimax-ai/pr-review

Review pull requests for the MiniMax Skills repository. Use when reviewing PRs, validating new skill submissions, or checking existing skills for compliance. Run the validation script first for hard checks, then apply quality guidelines for content review. Triggers: PR review, pull request, validate skill, check skill.

minimax-ai/shader-dev

Comprehensive GLSL shader techniques for creating stunning visual effects — ray marching, SDF modeling, fluid simulation, particle systems, procedural generation, lighting, post-processing, and more.

minimax-ai/vision-analysis

Analyze, describe, and extract information from images using the MiniMax vision MCP tool. Use when: user shares an image file path or URL (any message containing .jpg, .jpeg, .png, .gif, .webp, .bmp, or .svg file extension) or uses any of these words/phrases near an image: "analyze", "analyse", "describe", "explain", "understand", "look at", "review", "extract text", "OCR", "what is in", "what's in", "read this image", "see this image", "tell me about", "explain this", "interpret this", in connection with an image, screenshot, diagram, chart, mockup, wireframe, or photo. Also triggers for: UI mockup review, wireframe analysis, design critique, data extraction from charts, object detection, person/animal/activity identification. Triggers: any message with an image file extension (jpg, jpeg, png, gif, webp, bmp, svg), or any request to analyze/describ/understand/review/extract text from an image, screenshot, diagram, chart, photo, mockup, or wireframe.

相关技能