# react-native-testing

react-native-testing — a testing skill for React Native: Jest setup, component and hook tests with Testing Library, native-module mocks, Detox E2E flows and CI wiring.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 113 installs · ★ 10 repo stars
- Author: pluginagentmarketplace
- License: LicenseRef-Proprietary · policy=link-only · description only; the file stays with the author
- Source: https://github.com/pluginagentmarketplace/custom-plugin-react-native/tree/HEAD/skills/react-native-testing/SKILL.md
- Updated: 2026-01-05
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/pluginagentmarketplace-react-native-testing

## What it does

The skill walks a React Native codebase through its test layers. Jest config comes first, with the `react-native` preset and `transformIgnorePatterns`. Then component tests that fire real presses, hook tests through `renderHook` and `act`, mocks for storage and network calls, and Detox flows that drive the app end to end. Every section carries a snippet meant to be pasted and edited.

Near the end sits a troubleshooting table: a mock you forgot, an `await` you dropped, a selector that no longer matches. The acceptance checklist names a coverage bar of 80%+. Treat that as the bar the author grades against, not a suggestion.

React Native fundamentals and comfort with async/await are listed up front, and for good reason — the `waitFor` examples assume you have seen async code before. A paired agent ships alongside: `06-react-native-testing`.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-react-native --skill react-native-testing -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/react-native-testing/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/react-native-testing/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-react-native --skill react-native-testing -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/react-native-testing/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-react-native --skill react-native-testing -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/react-native-testing/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install pluginagentmarketplace/custom-plugin-react-native skills/react-native-testing
```

2. **Manually: put the files in place**
- File: `.github/skills/react-native-testing/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-react-native --skill react-native-testing -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/pluginagentmarketplace/custom-plugin-react-native --path skills/react-native-testing
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/react-native-testing/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-react-native --skill react-native-testing -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/pluginagentmarketplace/custom-plugin-react-native/tree/HEAD/skills/react-native-testing/SKILL.md

## When to use it
- configure Jest for a React Native project
- test that a press fires the handler
- mock AsyncStorage inside a unit test
- script a Detox login flow
- measure coverage against a threshold

## Example prompts
- Use the `react-native-testing` skill to set up `jest.config.js` for a React Native project
- With `react-native-testing`, write a component test for `ProductCard` that presses the button
- Run the `react-native-testing` skill and sketch a Detox login flow using `testID` selectors

## Similar
- [mobile-app-testing](https://affpapa.org/en/nevibecode/skills/mobile-app-testing.md) — skill · 834 installs
- [react-native-web-testing](https://affpapa.org/en/nevibecode/skills/react-native-web-testing.md) — skill · 236 installs
- [react-testing-library](https://affpapa.org/en/nevibecode/skills/pproenca-react-testing-library.md) — skill · 428 installs
- [expo-react-native-typescript](https://affpapa.org/en/nevibecode/skills/expo-react-native-typescript.md) — skill · 2300 installs
- [limrun-detox-testing](https://affpapa.org/en/nevibecode/skills/limrun-detox-testing.md) — skill · 45300 installs
- [detox-skill](https://affpapa.org/en/nevibecode/skills/detox-skill.md) — skill · 252 installs

## Other versions with the same name
- [react-native-testing · callstack](https://affpapa.org/en/nevibecode/skills/react-native-testing.md) — 5600 installs

From the same set: [pluginagentmarketplace/custom-plugin-react-native](https://affpapa.org/en/nevibecode/by/pluginagentmarketplace/custom-plugin-react-native.md) — 2 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
