expo-react-native-typescript — Claude Code skill for Expo and RN
A skill that hands your agent a rulebook for Expo, React Native and TypeScript work: file layout, navigation, state, testing.
npx skills add Mindrally/skills --skill expo-react-native-typescript -a claude-codeWhat expo-react-native-typescript does
The skill loads a set of conventions into your coding agent so it stops improvising on mobile projects. Functional components only, interfaces over types, no enums — maps instead. Strict mode on. Directories stay lowercase with dashes, like components/auth-wizard.
Layout and performance get their own sections. Responsive screens come from Flexbox and useWindowDimensions, dark mode from useColorScheme, notches from SafeAreaProvider in react-native-safe-area-context. The agent will push you away from scattered useState and useEffect toward Context and reducers, and toward WebP images with lazy loading through expo-image.
Routing is react-navigation, global state is Context with useReducer or Zustand, data fetching is react-query. Input validation uses Zod, tests use Jest with React Native Testing Library. One catch: the whole thing assumes Expo's managed workflow, so on a bare React Native project with custom native builds you will be discarding chunks of it.
What it helps with
- lay out folders and files for a fresh Expo app
- pick a global state approach before the codebase grows
- handle notches and screen insets once
- wire up dark mode without hand-rolling a scheme check
- get component tests running on Jest
Example prompts for the agent
- sketch a folder structure for my Expo TypeScript app
- how should routing and global state be set up here?
- review this component against the skill's conventions
How to install expo-react-native-typescript
1Skills CLI (Vercel)
npx skills add Mindrally/skills --skill expo-react-native-typescript -a claude-code2Manually: put the files in place
~/.claude/skills/expo-react-native-typescript/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/expo-react-native-typescript/
1Skills CLI (Vercel)
npx skills add Mindrally/skills --skill expo-react-native-typescript -a codex2Manually: put the files in place
.agents/skills/expo-react-native-typescript/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add Mindrally/skills --skill expo-react-native-typescript -a cursor2Manually: put the files in place
.cursor/skills/expo-react-native-typescript/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install Mindrally/skills expo-react-native-typescript2Manually: put the files in place
.github/skills/expo-react-native-typescript/SKILL.md1Skills CLI (Vercel)
npx skills add Mindrally/skills --skill expo-react-native-typescript -a gemini-cli2Platform CLI
gemini skills install https://github.com/Mindrally/skills --path expo-react-native-typescriptManually: put the files in place
.devin/skills/expo-react-native-typescript/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add Mindrally/skills --skill expo-react-native-typescript -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about expo-react-native-typescript
How do I install expo-react-native-typescript in Claude?
Run npx skills add Mindrally/skills --skill expo-react-native-typescript -a claude-code. The skill lands at ~/.claude/skills/expo-react-native-typescript/SKILL.md.
What does expo-react-native-typescript do?
It gives the agent a rulebook for Expo, React Native and TypeScript: coding conventions, styling, navigation, state, error handling and testing.
Does it work without Expo?
It leans on Expo's managed workflow and built-in components. On bare React Native with your own native build, some of the advice will not fit.
Source text
SKILL.md · Apache-2.0
--- name: expo-react-native-typescript description: Expert in Expo React Native TypeScript mobile development with best practices metadata: maintainer: Mindrally source: https://github.com/Mindrally/skills --- # Expo React Native TypeScript You are an expert in Expo, React Native, and TypeScript mobile development. ## Core Principles - Write concise, technical TypeScript code with accurate examples - Use functional and declarative programming patterns; avoid classes - Organize files with exported component, subcomponents, helpers, static content, and types - Use lowercase with dashes for directories like `components/auth-wizard` ## TypeScript Standards - Implement TypeScript throughout your codebase - Prefer interfaces over types, avoid enums (use maps instead) - Enable strict mode - Use functional components with TypeScript interfaces and named exports ## UI & Styling - Leverage Expo's built-in components for layouts - Implement responsive design using Flexbox and `useWindowDimensions` - Support dark mode via `useColorScheme` - Ensure accessibility standards using ARIA roles and native props ## Safe Area Management - Use SafeAreaProvider from react-native-safe-area-context to manage safe areas globally - Wrap top-level components with SafeAreaView to handle notches and screen insets ## Performance Optimization - Minimize `useState` and `useEffect` usage—prefer Context and reducers - Optimize images in WebP format with lazy loading via expo-image - Use code splitting with React Suspense for non-critical components ## Navigation & State - Use `react-navigation` for routing - Manage global state with React Context/useReducer or Zustand - Leverage `react-query` for data fetching and caching ## Error Handling - Use Zod for runtime validation - Handle errors at the beginning of functions and use early returns to avoid nested conditionals ## Testing & Security - Write unit tests with Jest and React Native Testing Library - Sanitize inputs, use encrypted storage for sensitive data, and ensure HTTPS communication ## Key Conventions - Rely on Expo's managed workflow - Prioritize Mobile Web Vitals - Use `expo-constants` for environment variables - Test extensively on both iOS and Android platforms
© Mindrally · Apache-2.0 · Mindrally/skills