zereight-react-native-testing

Write and review React Native tests with RNTL v13 and v14 APIs.

Updated Mar 1, 2026
One-click install
npx skills add https://github.com/zereight/skill --skill zereight-react-native-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: zereight-react-native-testing
Source: https://github.com/zereight/skill/tree/main/skills/zereight-react-native-testing
Command: npx skills add https://github.com/zereight/skill --skill zereight-react-native-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Write, review, and fix React Native tests using the React Native Testing Library (RNTL) across versions 13 and 14, ensuring test reliability and consistency.

Core Features & Use Cases

  • Version-aware guidance for v13 vs v14, including syncing render, queries, and userEvent behavior.
  • Structured testing best practices covering render patterns, queries by role, and preferring screen-based queries over destructuring.
  • Reference materials and examples drawn from the project's source code to accelerate writing, reviewing, or debugging tests in RN components.

Quick Start

Follow the RNTL testing guidelines when writing or reviewing React Native tests.

Frequently Asked Questions about zereight-react-native-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write React Native tests using React Native Testing Library?

To write React Native tests, use React Native Testing Library (RNTL) to apply best-practice render patterns, query elements by role, and execute interactions using screen, userEvent, and fireEvent.

What is the difference between RNTL v13 and v14 for testing?

The difference between RNTL v13 and v14 involves API changes for render patterns, queries, and userEvent behavior; version-aware guidance ensures your React Native tests sync correctly with the installed library version.

Should I use screen or container queries in React Native tests?

You should use screen-based queries in React Native tests rather than destructuring render methods, as this structured best practice improves test reliability and maintains consistency across RNTL v13 and v14.

When should I use userEvent instead of fireEvent in React Native tests?

Use userEvent instead of fireEvent in React Native tests when you need to simulate realistic user interactions, applying version-aware best-practice rules to ensure accurate component behavior validation.

Can I use async utilities with React Native Testing Library for component interactions?

Yes, you can use async utilities with React Native Testing Library to handle dynamic component interactions, applying best-practice rules to manage asynchronous rendering and query behavior effectively.

Why does my React Native test fail when upgrading RNTL versions?

React Native tests fail during RNTL upgrades due to API differences between v13 and v14; applying version-aware guidance for render patterns, queries, and userEvent behavior resolves these test failures.