← 返回 Skills 市场
daidai8910g

MiniMax React Native Dev

作者 daidai8910g · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
275
总下载
0
收藏
3
当前安装
1
版本数
在 OpenClaw 中安装
/install minimax-react-native-dev
功能描述
React Native and Expo development guide covering components, styling, animations, navigation, state management, forms, networking, performance optimization,...
使用说明 (SKILL.md)

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 \x3CImage> (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" \x3CSafeAreaView>
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 references before writing: when implementing navigation, lists, networking, or project setup, read the matching reference file above for patterns and pitfalls.

Try Expo Go first (npx expo start). Custom builds (eas build) only needed when using local Expo modules, Apple targets, or third-party native modules not in Expo Go.

Conditional rendering: use {count > 0 && \x3CText />} not {count && \x3CText />} (renders "0").

Animation rule: only animate transform and opacity — GPU-composited, no layout thrash.

Imports: always import directly from source, not barrel files — avoids bundle bloat.

Lists and images: before using FlatList or RN Image, check the Component Preferences table above — FlashList and expo-image are almost always the right choice.

Route files: always use kebab-case, never co-locate components/types/utils in app/.

Checklist

New Project Setup

  • tsconfig.json path aliases configured
  • EXPO_PUBLIC_API_URL env var set per environment
  • Root layout has GestureHandlerRootView (if using gestures)
  • contentInsetAdjustmentBehavior="automatic" on all scroll views
  • FlashList instead of FlatList for lists > 20 items

Before Shipping

  • Profile in --profile mode, fix frames > 16ms
  • Bundle analyzed (source-map-explorer), no barrel imports
  • R8 enabled for Android
  • Unit + component tests for critical paths
  • E2E flows for login, core feature, checkout

Flutter development → see flutter-dev skill. iOS native (UIKit/SwiftUI) → see ios-application-dev skill. Android native (Kotlin/Compose) → see android-native-dev skill.

React Native is a trademark of Meta Platforms, Inc. Expo is a trademark of 650 Industries, Inc. All other product names are trademarks of their respective owners.

安全使用建议
This skill is an instruction-only React Native / Expo developer guide and appears coherent with its description. Before installing or letting an agent execute its steps, consider: (1) the skill contains npx/expo commands that will fetch and run code from external registries—only run them in a trusted/sandboxed environment and review commands first; (2) several 'references/*.md' files are mentioned but not included, so the agent will rely on built-in knowledge rather than package-provided reference docs; (3) the publisher is unknown — if you need stronger provenance, prefer guides from known sources (official docs, repo with history) or inspect any commands the agent proposes to run; otherwise this skill is proportionate and coherent for its stated purpose.
功能分析
Type: OpenClaw Skill Name: minimax-react-native-dev Version: 1.0.0 The skill bundle is a comprehensive development guide for React Native and Expo. It provides standard technical recommendations, project initialization commands (e.g., npx create-expo-app), and best practices for performance and state management without any evidence of malicious intent, data exfiltration, or harmful prompt injection.
能力评估
Purpose & Capability
Name and description match the content of SKILL.md: guidance for building React Native and Expo apps. The skill declares no binaries, env vars, or config paths — which is appropriate for a documentation/guide skill.
Instruction Scope
SKILL.md contains step-by-step developer instructions (npx create-expo-app, npx expo install, file layout advice, etc.), which are appropriate for the stated purpose. Two notes: (1) the guide references local reference files (references/*.md) that are not bundled with the skill — the agent cannot actually read those files from this package and may rely on its own knowledge or hallucinate details; (2) the instructions call out commands (npx, expo) that will fetch and execute code from external package registries at runtime — this is expected for a dev guide but means actual code will be downloaded/executed if the agent runs those commands.
Install Mechanism
No install spec and no code files are present, so nothing will be written to disk by the skill itself. This is the lowest-risk installation profile for a documentation/instruction skill.
Credentials
The skill requests no environment variables, credentials, or config paths. Mentions of process.env.EXPO_OS and other env usage are guidance for app code, not requests for operator credentials — proportionate for a development guide.
Persistence & Privilege
always:false and default model-invocation settings are appropriate. The skill does not request persistent system-wide privileges or modify other skills' configurations.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install minimax-react-native-dev
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /minimax-react-native-dev 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: Practical React Native & Expo development guide - Covers components, styling, animations, navigation, state management, forms, networking, performance, testing, deployment, and CI/CD. - Includes quick-reference tables for tool and library choices. - Provides checklists for new project setup and pre-shipping tasks. - Links to topical reference files for in-depth patterns and best practices. - Offers recommendations and practical rules for production-grade React Native and Expo apps.
元数据
Slug minimax-react-native-dev
版本 1.0.0
许可证 MIT-0
累计安装 3
当前安装数 3
历史版本数 1
常见问题

MiniMax React Native Dev 是什么?

React Native and Expo development guide covering components, styling, animations, navigation, state management, forms, networking, performance optimization,... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 275 次。

如何安装 MiniMax React Native Dev?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install minimax-react-native-dev」即可一键安装,无需额外配置。

MiniMax React Native Dev 是免费的吗?

是的,MiniMax React Native Dev 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

MiniMax React Native Dev 支持哪些平台?

MiniMax React Native Dev 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 MiniMax React Native Dev?

由 daidai8910g(@daidai8910g)开发并维护,当前版本 v1.0.0。

💬 留言讨论