Skip to content
Agentmart
Submit a tool

rn-shared-ui-catalog

Catalog of available shared-ui components: what exists in the template, how to reuse vs create new

Skill by giolaq

IndexedMIT-0★ 4
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/giolaq-rn-shared-ui-catalog

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Catalog of available shared-ui components: what exists in the template, how to reuse vs create new

Use cases: design

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/rn-shared-ui-catalog

What's inside

Skill name
rn-shared-ui-catalog
Description
Catalog of available shared-ui components: what exists in the template, how to reuse vs create new
License
MIT-0
Instructions
97 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Shared UI catalog

> The template ships a working app. **Reuse before generating.** Free-form code is a last resort, not a first move. Every component in this catalog is battle-tested for TV focus, performance, and platform splits.

## The rule

For every screen the planner requests:

1. Find the closest existing screen in `packages/shared-ui/screens/`. **Use it as-is** if the difference is just data binding.
2. If the layout matches but composition differs, **compose existing components** into a new screen file.
3. Only if neither (1) nor (2) applies, write a new screen — and then look at existing screens for patterns before starting.

If you find yourself writing a `<View>` with a `<FlatList>` from scratch, stop. The template has `Grid`. Use it.

## Component reference

### `<Drawer>`
**Purpose:** Left-side collapsible navigation. Hosts the app's primary routes.
**When to use:** Always. It is the app's chrome. Don't replace it unless the planner explicitly says `navigation.type !== "drawer"`.
**Customize:** Items via `navigation/routes.ts`; theme tokens for background, accent, focused-item style.
**Do not:** Reimplement as tabs. If the planner asks for tabs, swap the navigator at the navigation layer, don't fork the drawer.

### `<Hero>`
**Purpose:** Top-of-screen dynamic banner. Updates as the user focuses tiles in the row below.
**When to use:** Any "browse" screen with a featured item. Home, category landing.
**Inputs:** `focusedItem` (auto-wired by parent), image URL, title, description, CTA.
**Gotcha:** Updates on focus change — too many state writes can drop frames. The component already debounces; don't add another debounce on top.

### `<Grid>`
**Purpose:** Responsive grid of tiles. Handles focus, virtualization, edge wrapping.
**When to use:** Any catalog view — categories, search results, watchlist.
**Inputs:** `items`, `renderItem` (optional; defaults to `<Tile>`), `columns` (auto by screen size).
**Gotcha:** Pass stable `keyExtractor`. Without it, focus jumps on re-render. The template defaults to `item.id`; if your manifest uses a different key, supply one.

### `<Rail>`
**Purpose:** Horizontal scrolling row of tiles (Netflix-style).
**When to use:** Home-page sections, "more like this" recommendations.
**Inputs:** `title`, `items`, `onItemFocus` (often used to drive the parent `<Hero>`).
**Gotcha:** Focus restoration on return — the template handles this via `<TVFocusGuide>` internally. Don't wrap it in another guide.

### `<Tile>`
**Purpose:** Single content card. Thumbnail, title, focus ring.
**When to use:** Inside Grid or Rail. Rarely standalone.
**Customize via theme:** Focus border color, scale-on-focus amount, label visibility.
**Anti-pattern:** Building your own card. The focus behavior here is non-trivial; don't recreate it.

### `<Player>`
**Purpose:** Full-screen video player based on `react-native-video`.
**When to use:** The player screen. That's it.
**Inputs:** `source` (URL + type), `metadata` (title, etc.), `onClose`.
**Customize:** Controls overlay, scrub-bar style. Player core logic — don't.
**Platform notes:** Vega has its own player. See `video-player.md`.

### `<DetailHeader>`, `<EpisodeList>`, `<RelatedRail>`
**Purpose:** Composable pieces of the detail screen.
**When to use:** Building detail variants (movie vs series vs live).

## Existing screens

| Screen | File | What it does | Reuse if… |
|--------|------|--------------|-----------|
| Home | `screens/Home/` | Hero + multiple rails driven by manifest sections | Manifest has `featured` + `categories` with `items` |
| Category | `screens/Category/` | Grid of items for one category | Drill-down from drawer/home |
| Detail | `screens/Detail/` | Hero + metadata + episodes/related + Play CTA | A video is selected |
| Player | `screens/Player/` | Full-screen `<Player>` + overlays | Detail's Play is pressed |
| Search | `screens/Search/` | Text input + grid results | Catalog is large enough that a search is useful |
| Settings | `screens/Settings/` | About, theme toggle, sign-out | Standard housekeeping |

## Decision tree: which screen do I add?

**Planner says `layout: "hero+rails"`** → use existing `Home`. Pass different data via the route param.
**Planner says `layout: "grid"`** → use existing `Category`. Provide a category ID.
**Planner says `layout: "detail"`** → use existing `Detail`. Provide an item ID.
**Planner says `layout: "player"`** → use existing `Player`. Always.
**Planner says `layout: "search"`** → use existing `Search`.
**Planner says `layout: "settings"`** → use existing `Settings`.

**None of the above** → write a new screen by composing components. Start by copying the closest existing screen as scaffolding.

## When to write a new component

Bar is high. New component only if:

- The visual pattern appears in **at least two screens** in the AppSpec.
- It can't be achieved by composing existing components.
- It has non-trivial focus behavior that warrants encapsulation.

Otherwise: inline it in the screen, and let it earn promotion to a component on the next iteration when it gets reused.

## Anti-patterns

- **Reimplementing the drawer as a custom sidebar.** Always loses focus edge cases.
- **Wrapping `<Rail>` or `<Grid>` in your own `<TVFocusGuide>`.** They already use one. Nested guides trap focus.
- **Custom `<Tile>` with `<TouchableOpacity>`.** Use `<Pressable>` so the template's focus styles work; better yet, use `<Tile>`.
- **Adding a fourth navigation pattern (e.g. bottom tabs on TV).** Bottom tabs don't work with D-pad. If the planner emits this, override and ask.

From giolaq/tv-build-harness, MIT-0.

More from giolaq/tv-build-harness

Signals

Stars
4
Forks
0
Open issues
3
Last commit (this folder)
Jun 24, 2026 (4 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT-0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from giolaq

Cite this page

rn-shared-ui-catalog skill. Agent Mart. https://agentmart.dev/skills/giolaq-rn-shared-ui-catalog (last updated 2026-10-24)