rn-components-apis

rn-components-apis is a skill for Claude Code, Codex from lukedj78/dev-flow. It costs 133 tokens per session (950 once invoked), scanned A, original, MIT.

Guidance for choosing React Native's built-in screen components and device APIs. These include text, scrolling lists, forms, buttons, modals, images, links, screen dimensions, and app-state handling.

In plain words
What is it for?
Use it when choosing components, building touch controls and forms, displaying images, handling long lists, adapting to screen size, opening external links, or supporting platform-specific behavior.
Why use it?
It prevents common component and platform mistakes, such as using an unsuitable list for large data sets or reading screen dimensions only once.

Skill for Claude CodeCodex

Part of the dev-flow plugin — 45 skills shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/lukedj78/dev-flow/rn-components-apis
Any agent
npx skills add lukedj78/dev-flow --skill rn-components-apis
Clone the repo
git clone --depth 1 https://github.com/lukedj78/dev-flow

Made for: Claude Code, Codex.

Or install dev-flow, the plugin that ships this one along with the rest of its 45 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rn-components-apis

README.md
[![agentmods](https://agentmods.dev/badge/skills/lukedj78/dev-flow/rn-components-apis.svg)](https://agentmods.dev/skills/lukedj78/dev-flow/rn-components-apis)
Your own site
<a href="https://agentmods.dev/skills/lukedj78/dev-flow/rn-components-apis"><img src="https://agentmods.dev/badge/skills/lukedj78/dev-flow/rn-components-apis.svg" alt="Measured on agentmods" height="20"></a>
Per session 133 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 950 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00133 $0.00950
Opus 5 $0.00067 $0.00475
Sonnet 5 $0.00027 $0.00190
Haiku 4.5 $0.00013 $0.00095

Measured 4d ago against content hash 10cc372244a5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

rn-components-apis scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

rn-components-apis/SKILL.md · 40 lines

How it starts

The opening of the file, as written. The whole thing — 40 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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)
  • "I need a map in this screen" → references/maps-mapcn-rn.md (mapcn-rn, the ecosystem-first default: MapLibre/Mapbox RN + NativeWind). ⚠️ native modules → needs a dev build, not Expo Go. Record stack.maps = "mapcn-rn"and the renderer + provider, which are a licensing and native-dependency decision, not a detail (v2 separates the two axes).
  • "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 (verified against @expo/[email protected] on 2026-08-26) for the full breakdown; this skill's guidance still applies whenever you're using View/Text/ScrollView/etc. as-is.

Read the full file on GitHub · 40 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 40 lines · 133 tokens per session scan A 10cc372244a5

Subscribe to this mod's changes

rn-components-apis is a skill published in the GitHub repository lukedj78/dev-flow (6 stars, last pushed today), licensed MIT. It adds 133 tokens to every session and 950 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

build-teaql-app

Build or change a TeaQL application in Java, Rust, Go, Swift, Python, C#/.NET, or TypeScript, including Kotlin/JVM applications that consume Java-generated libraries. Mandatory order: first draft and save a complete KSML model, then verify the client and evaluate that saved model, repair it through repeated evaluation…

teaql/teaql-agent-kit · 112 tokens

uniwind

Uniwind — Tailwind CSS v4 styling for React Native. Use when adding, building, or debugging components in a React Native project that uses Uniwind classNames. Covers setup, Metro config, global.css, theming, className props, accent- color props, platform/data/state/responsive variants, CSS variables, custom utilities…

uni-stack/uniwind · 130 tokens

upgrading-react-native-storybook

Incrementally upgrade React Native Storybook across the supported migration paths. Use when upgrading @storybook/react-native projects from 5.3.x to 6.5.x, 6.5.x to 7.6.x, 7.6.x to 8.3.x, 8.x to 9.x, or 9.x to 10.x. Detect the currently installed Storybook version, choose only the next migration step, update…

storybookjs/react-native · 151 tokens

platform-specialist

Doc-driven platform integration expert. Converts a web app to LINE MINI App (LIFF SDK), PWA (Next.js 16), and Capacitor (iOS/Android). Expo & Tauri are secondary/legacy. ปรัชญาหลัก: ดึง docs จริงล่าสุดก่อนเขียนโค้ดเสมอ — ไม่ freeze snippet ที่จะ rot. Triggers: "LINE MINI App", "LIFF", "LINE OA", "convert to app"…

wasintoh/toh-framework · 161 tokens

wire-sdk

앱인토스 SDK(권한·저장소·공유·Safe Area 등)를 화면에 붙인다.

TOKTOKHAN-DEV/agent-company · 2 tokens

migrate-nativewind-to-uniwind

Migrate a React Native project from NativeWind to Uniwind. Use when the user wants to replace NativeWind with Uniwind, upgrade from NativeWind, switch to Uniwind, or mentions NativeWind-to-Uniwind migration. Handles package removal, config migration, Tailwind 4 upgrade, cssInterop removal, theme conversion, and all…

uni-stack/uniwind · 82 tokens