react-native-testing
Installation
SKILL.md
React Native Testing Library
Deep API reference for
@testing-library/react-nativev13 and v14.Scope: unit + component tests with Jest + RNTL. For end-to-end UI flows on real devices/simulators, use Maestro — declarative YAML flows, no code, runs against the built app. RNTL and Maestro are complementary, not alternatives.
IMPORTANT: API signatures, sync/async behavior, and available functions differ between v13 and v14. Always check the project's package.json and load the matching version reference rather than relying on memorized patterns.
Version Detection
Check @testing-library/react-native in package.json:
- v14.x → load reference-v14-api (React 19+, async APIs,
test-renderer) - v13.x → load reference-v13-api (React 18+, sync APIs,
react-test-renderer)