react-native-architecture
/react-native-architecture
Structure React Native projects with feature-first organization and separation of concerns. Use when structuring a React Native project or applying clean architecture patterns.
- Author
- HoangNguyen0403 ↗
- Repository
- agent-skills-standard ↗
- Licence
- MIT
- Last repository change
- 22.10.2026
Assessment and security
- Files in this package
- 3
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 22.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Structure React Native projects with feature-first organization and separation of concerns. Use when structuring a React Native project or applying clean architecture patterns.
Original author description
Structure React Native projects with feature-first organization and separation of concerns. Use when structuring a React Native project or applying clean architecture patterns.
How it works
- Priority: P0 (CRITICAL)
- Organize by Feature
- Anti-Patterns
- Navigation Strategy
- Verification Checklist (Mandatory)
- References
SKILL.md preview
---
name: react-native-architecture
description: Structure React Native projects with feature-first organization and separation of concerns. Use when structuring a React Native project or applying clean architecture patterns.
metadata:
triggers:
files:
- 'src/**/*.tsx'
- 'src/**/*.ts'
- 'app.json'
- 'StyleSheet.create'
keywords:
- feature
- module
- directory structure
- separation of concerns
- Expo
- React Navigation
- react-native
- mobile architecture
---
# React Native Architecture
## **Priority: P0 (CRITICAL)**
## Organize by Feature
- **Feature-First**: Organize by feature/module, not by type.
- **Colocation**: Keep related files together (screens, components, hooks within feature).
- **Separation**: UI (screens/components) separate from logic (hooks/services).
See [folder structure reference](references/folder-structure.md) for full directory tree and path alias configuration.
- **Atomic Components**: Reusable components in `/components`. Feature-specific in feature folder.
- **Absolute Imports**: Configure tsconfig.json paths for clean imports.
- **Single Responsibility**: Each file one clear purpose.
- **Expo vs CLI**: Structure works for both. Expo uses `app.json`, CLI uses `index.js`.
## Anti-Patterns
- **No Type-Based Folders**: Avoid `/containers`, `/screens` at root. Use features.
- **No Logic in Screens**: Extract to hooks or services.
- **No Circular Deps**: Features should not import from each other directly.
- **No Deep Nesting**: Max 3 levels deep.
## Navigation Strategy
- **Expo Router**: Use for new projects, web-parity, and file-based routing.
- **React Navigation**: Use for complex deep-linking, legacy apps, or high-customization needs.
## Verification Checklist (Mandatory)
- [ ] **Feature-First**: file inside feature directory?
- [ ] **Colocation**: hooks/services colocated with screens?
- [ ] **Logic-Free Screens**: there any business logic in screen component?
- [ ] **Navigation Choice**: project use navigation strategy defined above?
## References
See [references/folder-structure.md](references/folder-structure.md) for full directory tree, path alias config, and service layer patterns.
Files in this package (3)
- SKILL.md 2 KB
- evals/evals.json 3 KB
- references/folder-structure.md 6 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · HoangNguyen0403/agent-skills-standard | 90 | MIT |
| rootcastleco/rei-skills | 100 | MIT |
| j4flmao/agent-skills | 100 | MIT |
| wshobson/agents | 100 | MIT |
| Vinay7766/omni-orchestrator | 100 | Apache-2.0 |
| wesleyegberto/software-engineering-skills | 95 | MIT |
| Amey-Thakur/AI-SKILLS | 90 | MIT |
Database snapshot: 13.11.2026 · package version eab65ccaec9c (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 90react-architecture
Use this skill when the user says 'React structure', 'React architecture', 'React folder', 'React component pattern', 'React hooks architecture', 'React clean arch', 'feature-based React', 'React project layout', or when structuring a React application. This skill enforces:… - 100react-native-testing
Test React Native components with Jest and React Native Testing Library. Use when writing Jest or React Native Testing Library tests for React Native components. - 100react-native-web-core
Use when working with React Native Web projects. Provides core concepts, components, and cross-platform patterns for building web applications with React Native. - 86react-native
React Native开发专家助手。当用户需要进行React Native跨平台移动开发、iOS/Android应用、Expo框架或移动端UI开发时调用。 - 96react-native-skills
Use when working with react-native-skills tasks or workflows - 100architecture
Review and structure React Native features for folder layout, navigation, deep links, startup order, and safe area. Use when designing a new feature, reviewing structure, or isolating crashes.