react-native-testing

Write and execute automated React Native Testing Library tests for RNTL v13 and v14.

1.6k|115|Updated Jan 14, 2026
One-click install
npx skills add https://github.com/callstackincubator/agent-skills --skill react-native-testing-callstackincubator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-native-testing
Source: https://github.com/callstackincubator/agent-skills/tree/main/plugins/vendored/.agents/skills/react-native-testing
Command: npx skills add https://github.com/callstackincubator/agent-skills --skill react-native-testing-callstackincubator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @testing-library/react-native, jest, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the process of writing, reviewing, and fixing React Native component tests, significantly reducing the time and effort required for testing.

Core Features & Use Cases

  • RNTL Integration: Seamlessly integrates with React Native Testing Library (RNTL) versions 13 and 14.
  • Version Support: Provides comprehensive guidance for both RNTL v13 (React 18, sync render) and v14 (React 19+, async render).
  • Query Priority: Offers a structured approach to querying elements in the UI, ensuring accurate and efficient testing.
  • Interactions: Guides on using userEvent for realistic user interactions and fireEvent for direct event triggering.
  • Assertions: Provides a comprehensive list of Jest matchers for validating component states and behaviors.
  • Use Case: For a developer looking to write automated tests for a React Native application, this Skill provides the necessary guidance and best practices to ensure robust and reliable tests.

Quick Start

Use the react-native-testing skill to create and execute tests for your React Native components.

Frequently Asked Questions about react-native-testing

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

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

This Skill assists in writing automated tests for React Native components by providing structured guidance on RNTL queries, interactions, and Jest assertions. It supports both RNTL v13 and v14 to ensure robust test coverage.

Does RNTL work with React 19 async rendering?

Yes, React Native Testing Library supports React 19+ async rendering through RNTL v14. The Skill also provides guidance for RNTL v13, which covers React 18 synchronous rendering, ensuring compatibility across different React versions.

What is the difference between userEvent and fireEvent in React Native tests?

In React Native tests, `userEvent` simulates realistic user interactions, while `fireEvent` directly triggers events on elements. This Skill guides you on using both to accurately validate component behaviors and states.

What's the best way to query UI elements in React Native component tests?

The best way to query UI elements in React Native tests is by following a structured query priority approach. This Skill offers guidance on selecting the right queries to ensure accurate and efficient component testing.

What are the limitations of testing React Native components with Jest and RNTL?

When testing React Native components with Jest and RNTL, limitations depend on whether you use sync render (v13) or async render (v14). This Skill provides specific guidance to navigate these constraints and improve test reliability.