
React Native Testing
Guide for writing React Native component tests with Testing Library v13 and v14, covering queries, matchers, and async patterns.
- skills.sh installs
- 5.6K
- GitHub stars
- 3.4K
- last updated
- Aug 21, 2026
What it does
- Covers version detection, query priority and variants, userEvent and fireEvent interactions, and Jest matchers for React Native component tests
- Includes separate v13 (sync render, React 18) and v14 (async render, React 19+) API references, plus an anti-patterns reference
- Enforces rules such as preferring
getByRolequeries, usingfindBy*overwaitForwithgetBy*, and keeping side effects out ofwaitFor - Designed for developers writing, reviewing, or fixing React Native component tests with
@testing-library/react-native
Install
$ npx -y skills add callstack/react-native-testing-library --skill react-native-testing -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
RNTL Test Writing Guide
IMPORTANT: Your training data about @testing-library/react-native may be outdated or incorrect — API signatures, sync/async behavior, and available functions differ between v13 and v14. Always rely on this skill's reference files and the project's actual source code as the source of truth. Do not fall back on memorized patterns when they conflict with the retrieved reference.
Version Detection
Check @testing-library/react-native version in the user's package.json:
- v14.x → load references/api-reference-v14.md (React 19+, async APIs,
test-renderer) - v13.x → load references/api-reference-v13.md (React 18+, sync APIs,
react-test-renderer)
Use the version-specific reference for render patterns, fireEvent sync/async behavior, screen API, configuration, and dependencies.
Query Priority
Use in this order: getByRole > getByLabelText > getByPlaceholderText > getByText > getByDisplayValue > getByTestId (last resort).
Query Variants
Details
- Repository
- github.com/callstack/react-native-testing-library
- Categories
- Testing & QA, Frontend & UI Code, Mobile Apps
- First seen
- Apr 16, 2026
Similar to React Native Testing
More Testing & QA
react-testing-librarypproenca/dot-skills426 installsBest-practice guide with 43 rules for writing user-centric React Testing Library tests and reviewing them for anti-patterns.
jest-react-testingmanutej/luxor-claude-marketplace1.2K installsComprehensive Jest and React Testing Library guidance for configuration, mocking, async, and hook tests.
vue-testing-best-practicesantfu/skills17.2K installsTesting guide for Vue.js components covering Vitest, Vue Test Utils, mocking, and Playwright E2E tests.
testing-patternsdavila7/claude-code-templates306 installsJest and React Native Testing Library patterns with factory functions, mocking strategies, and a TDD red-green-refactor workflow.