# ui-pressable

ui-pressable is a Claude Code rule for choosing touch components in React Native. It applies when an agent adds or edits buttons and list items.

- rule · `type=rule` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline · ★ 88 repo stars
- Author: alexj11324
- License: AGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/alexj11324/Mikka/tree/HEAD/.claude/skills/react-native-skills/rules/ui-pressable.md
- Updated: 2026-11-17
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/rules/ui-pressable

## What it does

The ui-pressable rule directs React Native code to use `Pressable` rather than `TouchableOpacity` or `TouchableHighlight`. The component can come from `react-native` or `react-native-gesture-handler`.

For scrollable lists, it points to the gesture-handler version when the list also uses that package’s `ScrollView`. Animated press states use `GestureDetector` with Reanimated shared values instead of a `Pressable` style callback.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/rules/ui-pressable.md` — The paths frontmatter field limits the files

### Codex

**AGENTS.md**
- Codex reads AGENTS.md: paste the rule text there

### Cursor

**Manually: put the files in place**
- File: `.cursor/rules/ui-pressable.mdc` — Frontmatter: description, globs, alwaysApply

### GitHub Copilot

**Manually: put the files in place**
- File: `.github/instructions/ui-pressable.instructions.md` — The applyTo field sets which files it applies to

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/rules/ui-pressable.md`

### Cline

**Manually: put the files in place**
- File: `.clinerules/ui-pressable.md`

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/alexj11324/Mikka/tree/HEAD/.claude/skills/react-native-skills/rules/ui-pressable.md

## When to use it
- replace `TouchableOpacity` in a button
- remove `TouchableHighlight` from a list item
- choose a press component for a scrollable list
- pick an approach for animated press states

## Example prompts
- Replace `TouchableOpacity` in this button with `Pressable`.
- Review this list item and choose the `Pressable` variant for its scrolling setup.
- How should this animated press state follow ui-pressable?

## Similar
- [animate-expo](https://affpapa.org/en/nevibecode/skills/animate-expo.md) — skill · 189400 installs
- [swiftui-gestures](https://affpapa.org/en/nevibecode/skills/swiftui-gestures.md) — skill · 4300 installs
- [mobile-touch](https://affpapa.org/en/nevibecode/skills/mobile-touch.md) — skill · 2500 installs
- [mobile-design](https://affpapa.org/en/nevibecode/skills/manutej-mobile-design.md) — skill · 558 installs
- [argent-device-interact](https://affpapa.org/en/nevibecode/skills/argent-device-interact.md) — skill · 32600 installs
- [mobile-testing](https://affpapa.org/en/nevibecode/skills/mobile-testing.md) — skill · 177 installs

From the same set: [alexj11324/mikka](https://affpapa.org/en/nevibecode/by/alexj11324/mikka.md) — 47 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
