agentsclimarketplace

Rn components apis

Skill lukedj78/dev-flow/rn-components-apis

A filesystem contract (.workflow/meta.json) + 37 agent skills that take a product from idea to production: web (Next.js 16) & mobile (Expo/RN), plus an eve agent engine and Linear/scrum. Runs on Claude Code, Codex, Copilot, Gemini, Cursor.

Install
npx -y skills add lukedj78/dev-flow --skill rn-components-apis

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Use when working with React Native core components (View, Text, ScrollView, FlatList, TextInput, Pressable, Modal, KeyboardAvoidingView, SafeAreaView) or platform APIs (Platform, Dimensions, useWindowDimensions, Linking, AppState). Triggers on: "which RN component should I use", "ScrollView vs FlatList", "how do I handle keyboard avoidance", "platform-specific code", "open external URL". Not for: styling (rn-styling), navigation (rn-expo-router), data fetching (rn-data-fetching), animations (rn-animations-gestures, Wave 3).

SKILL.md

3.2 KB, as published. Nobody here has run it

rn-components-apis — guardrail for RN core components + platform APIs

The 5 rules (non-negotiable)

  1. Pressable for any touchable — never TouchableOpacity / TouchableHighlight / TouchableWithoutFeedback in new code.
  2. expo-image for any image — never Image from react-native (no caching).
  3. @shopify/flash-list for lists with > 20 items or unknown length — never FlatList at scale.
  4. useWindowDimensions() hook in the component — never Dimensions.get('window') at module top-level (fails on rotation/foldables).
  5. Platform.select({ ios, android }) for platform-specific styles or behavior — never Platform.OS === ... ternaries scattered across the file.

Quick decision tree

  • "Which list primitive?" → references/decision-tree.md (ScrollView/FlatList/FlashList/SectionList)
  • "Which touchable?" → always Pressable. See references/patterns.md for the canonical button pattern.
  • "How do I open an external URL / mail / phone?" → references/patterns.md (Linking section)
  • "Keyboard avoidance pattern?" → references/patterns.md (KeyboardAvoidingView + Android quirks)
  • "None of these core components feel native enough for this screen" → these are all RN primitives (a JS abstraction over both platforms). For real native controls instead — SwiftUI on iOS, Jetpack Compose on Android (grouped settings sections, native picker/slider, real sheets) — that's @expo/ui, a different tool. See rn-styling/references/expo-ui.md ([VERIFY] against mcp.expo.dev) for the full breakdown; this skill's guidance still applies whenever you're using View/Text/ScrollView/etc. as-is.

Common anti-patterns (NEVER do)

  • <TouchableOpacity onPress={...}><Pressable onPress={...}>
  • <Image source={{ uri }} /> from react-nativeimport { Image } from "expo-image"
  • <FlatList data={items}> for any list that may grow → <FlashList data={items} estimatedItemSize={64}>
  • const { width } = Dimensions.get('window') at module top — use useWindowDimensions() inside the component
  • <KeyboardAvoidingView> without explicit behavior prop — broken on Android. Use Platform.select({ ios: "padding", android: "height" })

Sources

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.