react-native-testing-library

Provide conventions and reusable patterns for React Native component tests.

7|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/joabgonzalez/ai-agents-skills --skill react-native-testing-library
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-native-testing-library
Source: https://github.com/joabgonzalez/ai-agents-skills/tree/main/skills/react-native-testing-library
Command: npx skills add https://github.com/joabgonzalez/ai-agents-skills --skill react-native-testing-library

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Improves reliability of React Native component tests by providing conventions and reusable patterns.

Core Features & Use Cases

  • Conventions for testing RN components with best practices for queries and assertions.
  • Jest integration for mocking, setup, and cross-platform rendering checks.
  • Real-world scenario: verify a button triggers onPress and renders correctly.

Quick Start

Install the testing library in your React Native project and run your first test to verify component behavior.

Frequently Asked Questions about react-native-testing-library

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

FAQPage Schema
How do I test React Native component events like onPress with Jest?

You can test React Native component events by applying reusable testing patterns that verify onPress callbacks fire correctly. This Skill provides Jest integration conventions for mocking and asserting event behaviors across rendered components.

What's the best way to structure React Native component tests for reliability?

To improve React Native component test reliability, apply provided conventions for queries and assertions. These reusable patterns standardize how unit and integration tests validate rendering and component behavior across platforms.

Does React Native testing library work for cross-platform rendering checks?

Yes, React Native testing supports cross-platform rendering checks. It provides conventions for validating component rendering and accessibility across different platforms within a configured Jest environment.

Do I need a specific version of @testing-library/react-native to use these conventions?

Yes, these testing conventions require @testing-library/react-native version 12.0.0 or higher but below 13.0.0. You also need a configured Jest environment to execute the unit and integration tests.

How does accessibility testing work for React Native components?

Accessibility testing for React Native components works by applying specific query conventions to validate accessibility properties during rendering checks. This ensures components meet required standards across platforms within your Jest setup.