React Native and Expo Best Practices

VerifiedSafe

Best practices for building performant mobile apps with React Native and Expo. Covers 35+ rules for animations, lists, state management, and native UI patterns.

Sby Skills Guide Bot
DevelopmentIntermediate
7/24/2026
Claude Code
#react-native#expo#mobile#performance#animations

Recommended for

Automated summary

React Native and Expo best-practices guide for the Wythm mobile app, organized into 14 rule sections loaded on demand from AGENTS.md.

Strengths

  • Covers 35+ rules ranked by priority, from rendering crashes down to incremental optimizations
  • Loads only the relevant section with Grep and Read instead of reading the whole rules file
  • Addresses concrete topics such as list performance, Reanimated, navigation, and state architecture
  • Clearly scopes itself against web React and design-token skills

Limitations

  • Assumes an AGENTS.md file exists with specific section headers in the repository
  • Tightly coupled to the Wythm app and its mobile-app/ directory layout
  • Provides reference rules only, with no automated analysis or applied fixes
When to use it

Use it when building or reviewing React Native/Expo components inside the mobile-app/ directory of a Wythm project.

When not to use it

Avoid it for web-only React code or design-token naming decisions, which belong to other skills.

Security analysis

Safe
Quality score86/100

The skill is a documentation/reference guide for React Native and Expo best practices. It declares only Read and Grep tools, and contains no destructive commands, network calls, secret exfiltration, obfuscated payloads, or safety-disabling instructions.

No concerns found

How this analysis is made

Examples

Optimize a FlatList
Optimize this FlatList in mobile-app/screens/Feed.tsx for smooth scrolling — it currently re-renders every item on each state change.
Add a press animation
Add a Reanimated press animation to the primary button component in mobile-app/components/Button.tsx, and make sure the press state doesn't cause unnecessary re-renders.
Review a component
Review mobile-app/components/ProfileCard.tsx against React Native best practices, starting with core rendering issues like conditional && and strings outside <Text>.

name: react-native-expo-mobile description: | React Native and Expo best practices for Wythm mobile-app.

Use this skill when:

  • Working with files in mobile-app/ directory
  • Implementing React Native components, animations, lists, or navigation
  • Using Reanimated, Gesture Handler, or Expo APIs
  • Optimizing performance (FlatList, ScrollView, animations)
  • Implementing state management with hooks or Zustand
  • Questions about React Native patterns or best practices

Contains 35+ rules for preventing crashes, optimizing lists, GPU-accelerated animations, state architecture, and native UI patterns.

NOT for web-only React code (use vercel-react-best-practices). NOT for design token naming (use design-tokens). allowed-tools:

  • Read
  • Grep

React Native + Expo Best Practices

React Native and Expo best practices for building performant mobile apps for Wythm.

When to use this skill

  • When developing React Native components in mobile-app/ directory
  • When optimizing list performance or animations
  • When implementing state management with React hooks or Reanimated
  • When working with native modules or Expo APIs
  • When building mobile UI following platform best practices

Related skills

  • /design-tokens - for token naming and theming decisions
  • vercel-react-best-practices - for web-only React/Next.js code

Instructions

When this skill is invoked:

  1. Identify the relevant section(s) from the reference table below
  2. Load only the needed section from AGENTS.md using Grep to find the section header (e.g., ## 3. Animation), then Read the relevant line range
  3. Apply rules by priority:
    • CRITICAL (prevent crashes): Core Rendering
    • HIGH (major performance): List Performance, Animation, Scroll, Navigation
    • MEDIUM (moderate impact): State, UI, Design System, React Compiler
    • LOW (incremental): Monorepo, Dependencies, JavaScript, Fonts

Example requests

  • "Optimize this FlatList" -> Load section 2 (List Performance) from AGENTS.md
  • "Add a press animation to this button" -> Load sections 3 (Animation) and 7 (State Architecture)
  • "Review this component for RN best practices" -> Load section 1 (Core Rendering) first, then scan for relevant patterns

Reference sections

| # | Section | Priority | When to load | |---|---------|----------|--------------| | 1 | Core Rendering | CRITICAL | Always scan for && and string-outside-Text issues | | 2 | List Performance | HIGH | FlatList, FlashList, LegendList, ScrollView+map | | 3 | Animation | HIGH | Reanimated, CSS transitions, gestures, press states | | 4 | Scroll Performance | HIGH | Scroll position tracking, scroll events | | 5 | Navigation | HIGH | Stack, tabs, expo-router, headers | | 6 | React State | MEDIUM | useState, derived state, stale closures | | 7 | State Architecture | MEDIUM | Ground truth, shared values as state | | 8 | React Compiler | MEDIUM | Destructuring, .get()/.set() for Reanimated | | 9 | User Interface | MEDIUM | Images, menus, modals, styling, safe areas | | 10 | Design System | MEDIUM | Compound components, component API design | | 11 | Monorepo | LOW | Native deps in app dir, version alignment | | 12 | Third-Party Deps | LOW | Import from design system folder | | 13 | JavaScript | LOW | Intl formatter hoisting | | 14 | Fonts | LOW | Native font loading at build time |

Supporting files

  • rules/_sections.md - Section definitions
  • rules/_template.md - Template for new rules

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/react-native-and-expo-best-practices-mryiqi16/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/react-native-and-expo-best-practices-mryiqi16' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/react-native-and-expo-best-practices-mryiqi16/download' --output '.skill-downloads/react-native-and-expo-best-practices-mryiqi16/SKILL.md.part' && mv '.skill-downloads/react-native-and-expo-best-practices-mryiqi16/SKILL.md.part' '.skill-downloads/react-native-and-expo-best-practices-mryiqi16/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/react-native-and-expo-best-practices-mryiqi16/SKILL.md' && test -s '.skill-downloads/react-native-and-expo-best-practices-mryiqi16/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/react-native-expo-mobile' && cp -R '.skill-downloads/react-native-and-expo-best-practices-mryiqi16' '.claude/skills/react-native-expo-mobile'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/react-native-and-expo-best-practices-mryiqi16'

openskills read 'react-native-and-expo-best-practices-mryiqi16'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/react-native-and-expo-best-practices-mryiqi16/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills