Skip to content
Back to skills

React Native Component

ASecurity

Generates a React Native component with platform-specific styles and accessibility

  • 10 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 1, 2026
ai-agentsbashreact

Security analysis

A100/100

Scanned June 1, 2026

npx -y skills add berkcangumusisik/claude-code-practices --skill react-native-component --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of React Native Component?

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

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

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-component
description: Generates a React Native component with platform-specific styles and accessibility
argument-hint: <ComponentName> [description]
user-invocable: true
allowed-tools: Read Glob Edit
effort: medium
---

## Generate React Native Component

Component: **$1**
Description: **$2**

1. Detect stack:
```bash
cat package.json | grep -E '"react-native"|"expo"|"nativewind"|"@shopify/restyle"|"tamagui"'
ls src/components/ components/ 2>/dev/null | head -5
```

2. Read 1-2 existing components to match patterns.

3. Generate the component:

```tsx
import { StyleSheet, Text, TouchableOpacity, Platform } from 'react-native'

interface $1Props {
  label: string
  onPress: () => void
  disabled?: boolean
}

export function $1({ label, onPress, disabled }: $1Props) {
  return (
    <TouchableOpacity
      style={[styles.container, disabled && styles.disabled]}
      onPress={onPress}
      disabled={disabled}
      accessible
      accessibilityRole="button"
      accessibilityLabel={label}
      accessibilityState={{ disabled }}
    >
      <Text style={styles.label}>{label}</Text>
    </TouchableOpacity>
  )
}

const styles = StyleSheet.create({
  container: {
    padding: 16,
    borderRadius: 8,
    ...Platform.select({
      ios: { shadowOffset: { width: 0, height: 2 }, shadowOpacity: 0.1 },
      android: { elevation: 2 },
    }),
  },
  // ...
})
```

4. Include:
   - Accessibility props (`accessibilityRole`, `accessibilityLabel`, `accessibilityState`)
   - Platform-specific styles (`Platform.select`)
   - Proper hitSlop for small touch targets
   - Dark mode support with `useColorScheme` if project uses it

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.

Comments

Loading comments…