pr-review
Review pull requests for the MiniMax Skills repository. Use when reviewing PRs, validating new skill submissions, or checking existing skills for compliance.…
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
$ npx -y skills add minimax-ai/skills --skill react-native-dev --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/react-native-devContext preview
The summary Claude sees to decide when to auto-load this skill.
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
name: react-native-dev
description: |
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.
license: MIT
metadata:
version: "1.0.0"
category: mobile
sources:
- expo/skills by Expo (https://github.com/expo/skills) — Native UI, navigation, and animation patterns
- Expo documentation (docs.expo.dev)
- React Native documentation (reactnative.dev)
- EAS (Expo Application Services) documentationA practical guide for building production-ready React Native and Expo applications. Covers UI, animations, state, testing, performance, and deployment.
Consult these resources as needed:
| 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` |
| 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 Type | Solution | |------------|----------| | Local UI state | `useState` / `useReducer` | | Shared app state | Zustand or Jotai | | Server / async data | React Query | | Form state | React Hook Form + Zod |
| 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` |
# 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](references/navigation.md))
For web support, also install: `npx expo install react-native-web react-dom @expo/metro-runtime`
**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 && <Text />}` not `{count && <Text />}` (renders "0").
**Animation rule**: only animate `transform` and `opacity` — GPU-composited, no layout thrash.
**Imports**: always import directly from source, not barrel files —
Beta — This project is under active development. Skills, APIs, and configuration formats may change without notice. We welcome feedback and contributions. Development skills for AI coding agents.
Repo: minimax-ai/skills
Review pull requests for the MiniMax Skills repository. Use when reviewing PRs, validating new skill submissions, or checking existing skills for compliance.…
Choose presentation-ready color palettes and font pairings for PPT/design tasks. Use when users ask for visual theme choices, brand-safe palettes, or font…
Select a consistent visual design system for PPT slides using radius/spacing style recipes. Use when users ask for overall style direction or component styling…
Edit existing PowerPoint files or templates with XML-safe workflows. Use for template-based deck updates: analyze layouts, map content to slides,…
Plan and orchestrate multi-slide PowerPoint creation from scratch. Use before generating a full deck with subagents: classify each slide type, enforce visual…
Implement single-slide PowerPoint pages with PptxGenJS. Use when writing or fixing slide JS files: dimensions, positioning, text/image/chart APIs, styling…