Skip to main content
skill CX Codex

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.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add Mindrally/skills --skill expo-react-native-typescript -a claude-code
Open on GitHub

What 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-code

2Manually: put the files in place

~/.claude/skills/expo-react-native-typescript/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/expo-react-native-typescript/

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

Similar skills

Everything for Mobile →

From the same set168

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor