React Native Test Guide
Helps AI write dependable React Native component tests
The skill only provides test-writing guidance; it requests no permissions, performs no external actions, and handles no credentials or sensitive data, so its risk surface is low. Points are deducted because data flows, dependency security, user confirmation, rollback, and source verification are not specified; publisher identity is also unverified.
Version detection, v13/v14 routing, query guidance, and async rules are relatively coherent and supported by multiple reference files. Points are deducted because this static review did not execute tests, and the skill lacks project-level reproduction, abnormal-input handling, and diagnosable failure feedback; some behavior depends on actual project configuration.
The audience, React Native component-testing scenarios, trigger terms, and broad coverage are clear, with separate RNTL v13 and v14 guidance. Points are deducted because non-fit scenarios, input/output boundaries, and Chinese-language guidance are not explicit. Core functionality does not depend on unreachable overseas services, so no additional mainland-network deduction is warranted.
The documentation uses a useful layered structure of main guidance, version-specific references, and anti-patterns, with many examples, limitation notes, and MIT license context. Points are deducted because the skill itself lacks installation notes, version history, changelog, named maintenance responsibility, and a clear update path.
It covers common queries, interactions, assertions, async patterns, and custom rendering, with examples that are directly adaptable to tests and therefore provide clear practical value. Points are deducted because there is no committed representative test suite or execution evidence, and version or project-configuration differences still require manual checking.
Versioned reference files and concrete API signatures make key recommendations somewhat auditable. Points are deducted because there are no third-party sources, CI results, committed tests, or independent reproduction evidence, so static review cannot confirm the accuracy of the API and migration claims.
- No code or tests were executed; the score does not independently validate the documented RNTL APIs.
- Before use, verify the project's actual package.json, React version, test renderer, and installed RNTL version.
- Add source citations, maintenance ownership, a changelog, and CI tests covering the key v13/v14 paths.
What does this skill do, and when should you use it?
This Agent Skill guides React Native component testing with React Native Testing Library (RNTL) v13 and v14. It covers rendering, screen queries, Jest matchers, userEvent, fireEvent, waitFor, and async testing patterns. It detects the RNTL version from package.json and routes work to the matching reference material. It is suited to developers writing, reviewing, or fixing React Native component tests.
Reads the project package.json to identify @testing-library/react-native v13 or v14, then loads the version-specific API reference; guides AI in producing or editing tests with render, screen queries, userEvent, fireEvent, waitFor, custom wrappers, and RNTL Jest matchers; and flags query-priority rules, async behavior, and common anti-patterns.
- A React Native developer adding component tests can use it to choose version-correct rendering and query patterns.
- A team maintaining a React 18 and RNTL v13 project can use it for synchronous API guidance.
- A team migrating to React 19 and RNTL v14 can use it to handle async rendering and migration differences.
- A reviewer checking files with RNTL imports can use it to assess queries, events, and waitFor usage.
- A developer testing buttons, text inputs, accessibility states, or async results can use it to select suitable queries and Jest matchers.
What are this skill's strengths and limitations?
- Clearly separates RNTL v13 and v14 guidance, including React 18 and React 19+ differences.
- Provides concrete rules for query priority, interactions, async testing, and waitFor.
- Includes reference examples for userEvent, waitFor, custom rendering, and Jest matchers.
- Favors accessibility queries and RNTL matchers over brittle raw prop assertions.
- Covers React Native component testing, not a complete end-to-end or native-module testing strategy.
- The source provides no dedicated test suite, platform support matrix, or list of tested projects for this skill.
- Usage depends on version-specific reference files whose full contents are not included in the supplied material.
How do you install this skill?
The skill is located at https://github.com/callstackincubator/agent-skills in plugins/vendored/.agents/skills/react-native-testing/SKILL.md. The README says the repository supports Codex bundled plugins through .agents/plugins/marketplace.json, but it does not provide a standalone installation command for this skill.
How do you use this skill?
Install or place the skill in a compatible Agent Skills directory, then invoke it for React Native component-testing tasks. Example prompts: "Use RNTL v14 to write tests for this React Native component" or "Review this RNTL test and fix its async query usage." The project should declare @testing-library/react-native v13 or v14 in package.json.