Skip to content
Back to skills

React Native Components

ASecurity

Build modern React Native components using function components and composition. Use when building or refactoring React Native function components and composable UI.

  • 24 stars
  • 0 votes
  • 3 copies
  • 15 views
  • Added September 4, 2026
developmenttypescriptreactrefactoring

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned September 4, 2026

npx -y skills add gabrielmoreira/agent-skills-mirror --skill react-native-components --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of React Native Components?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for React Native Components
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gabrielmoreira-react-native-components/badge)](https://www.skillsdirectory.com/skills/gabrielmoreira-react-native-components)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: react-native-components
description: Build modern React Native components using function components and composition. Use when building or refactoring React Native function components and composable UI.
metadata:
  triggers:
    files:
    - '**/*.tsx'
    - '**/*.jsx'
    keywords:
    - component
    - props
    - children
    - composition
    - presentational
    - container
---
# React Native Components

## **Priority: P0 (CRITICAL)**


## Implementation Guidelines

- **Function Components Only**: Use hooks. No class components.
- **Container/Presentational**: Separate logic (hooks, data fetching) from UI (JSX, styling).
- **Composition**: Use `children` prop. Prefer composition over prop drilling.
- **Props**: TypeScript interfaces. Destructure in params.
- **File Size**: Keep components < 250 lines. Split if larger.
- **One Component Per File**: Named exports for components.
- **Naming**: `PascalCase` for components. `use*` for hooks.
- **Imports**: Group - React → External → Internal → Styles.
- **Platform Components**: Use built-in (`View`, `Text`, `TouchableOpacity`). Avoid DOM (`div`, `span`).

## Anti-Patterns

- **No Classes**: Use hooks instead.
- **No Nested Components**: Define at top level.
- **No Inline Styles**: Use `StyleSheet.create`.
- **No Index Keys**: Use stable IDs.
- **No Deep Nesting**: Max 3 levels.

## References

See [references/patterns.md](references/patterns.md) for Container/Presentational split, HOCs, Render Props, Compound Components, and Slot patterns.

## Canonical response anchors

When this skill applies, preserve the following domain terminology or equivalent concrete examples in the answer when relevant:
- data fetching

- Additional task-grounded exact anchors: nested component; top level.

Files in this skill

  • SKILL.md1.7 KB
  • evals/evals.json2.4 KB
  • references/patterns.md3.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.