coding
SKILL.md
Skill: coding
On load: Read ../../.claude-plugin/plugin.json from this skill's base directory. Display coding v{version} before proceeding.
React Native coding guidance that ensures docs are consulted before writing code and verification is suggested after.
Step 1: Load Docs
Load the docs skill immediately:
Skill(react-native-foundations:docs)
Step 2: Search Docs First
Before writing any code:
- Identify which RN APIs and components the task involves
- Grep
${CLAUDE_SKILL_DIR}/../../refs/react-native-docs/for those APIs - Read relevant doc files (max 3 most relevant)
- Note platform differences, deprecation warnings, or required props
Step 3: Write Code
- Follow patterns from the docs, not from memory or guessing
- Use correct prop types and required props
- Note platform-specific behavior inline with
Platform.OSchecks where needed - Follow New Architecture patterns if the project uses new arch (check for Fabric/Turbo Module config)
Step 4: Verify
After implementation, suggest verification:
- "
/react-native-foundations:layout-checkto verify visual layout" - "
/react-native-foundations:a11y-auditto check accessibility" - "
/react-native-foundations:debugto check for console errors" - If errors: "
/react-native-foundations:diagnoseto diagnose"
Common Gotchas
- FlatList requires
keyExtractororkeyprop on items - ScrollView inside FlatList causes performance issues
- Absolute positioning works differently than web CSS
- StatusBar behavior differs iOS vs Android
- SafeAreaView only works on iOS (use
react-native-safe-area-contextfor cross-platform) - Dimensions API returns points not pixels on iOS (3x on Retina)
- TextInput
onChangeTextgives string,onChangegives event object - Prefer Pressable over TouchableOpacity (newer, more flexible)
flex: 1in RN isflexGrow: 1, flexShrink: 1, flexBasis: 0— not the same as CSSoverflowdefaults tohiddenon Android,visibleon iOSfetch(fileUri).blob()produces 0-byte blobs on RN — use FormData with{ uri, type, name }for file uploads
Weekly Installs
1
Repository
ryanthedev/reac…ns.skillGitHub Stars
3
First Seen
5 days ago
Security Audits
Installed on
amp1
cline1
opencode1
cursor1
kimi-cli1
codex1