Skip to content
alinaqi avatar

React Native

Opinionated React Native patterns covering project layout, hooks-based components, state choices, and testing.

CCM score
55 of 100
skills.sh installs
536
GitHub stars
712
last updated
Jul 14, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers component structure, state management with useState, Zustand, and React Query, plus Jest and React Native Testing Library tests
  • Includes a project layout that separates pure core/ logic from components/, screens/, and hooks/, with barrel exports
  • Enforces explicit props interfaces, logic extracted into hooks, and StyleSheet.create over inline styles, with a list of anti-patterns to avoid
  • Designed for teams building mobile apps with React Native and TypeScript, especially where platform-specific code is needed

Install

$ npx -y skills add alinaqi/maggy --skill react-native -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

React Native Skill


Project Structure

project/
├── src/
│   ├── core/                   # Pure business logic (no React)
│   │   ├── types.ts
│   │   └── services/
│   ├── components/             # Reusable UI components
│   │   ├── Button/
│   │   │   ├── Button.tsx
│   │   │   ├── Button.test.tsx
│   │   │   └── index.ts
│   │   └── index.ts            # Barrel export
│   ├── screens/                # Screen components
│   │   ├── Home/
│   │   │   ├── HomeScreen.tsx
│   │   │   ├── useHome.ts      # Screen-specific hook
│   │   │   └── index.ts
│   │   └── index.ts
│   ├── navigation/             # Navigation configuration
│   ├── hooks/                  # Shared custom hooks
│   ├── store/                  # State management
│   └── utils/                  # Utilities
├── __tests__/
├── android/
├── ios/
└── CLAUDE.md

Component Patterns

Functional Components Only

// Good - simple, testable
interface ButtonProps {
  label: string;
  onPress: () => void;
  disabled?: boolean;
}

Details

Repository
github.com/alinaqi/maggy
Categories
Mobile Apps, Frontend & UI Code
First seen
Jun 3, 2026

More from alinaqi/maggy

All 54

Similar to React Native

More Mobile Apps