一键导入
react-native-testing
Deep React Native Testing Library (RNTL) reference — v13 (React 18 sync) and v14 (React 19 async), queries, userEvent, matchers, anti-patterns.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Deep React Native Testing Library (RNTL) reference — v13 (React 18 sync) and v14 (React 19 async), queries, userEvent, matchers, anti-patterns.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
GitHub Actions workflow patterns for React Native iOS simulator and Android emulator cloud builds with downloadable artifacts. Use when setting up CI build pipelines or downloading GitHub Actions artifacts via gh CLI and GitHub API.
GitHub patterns using gh CLI for pull requests, stacked PRs, code review, branching strategies, and repository automation. Use when working with GitHub PRs, merging strategies, or repository management tasks.
Provides an incremental adoption strategy to migrate native iOS or Android apps to React Native or Expo using @callstack/react-native-brownfield for initial setup. Use when planning migration steps, packaging XCFramework/AAR artifacts, and integrating them into host apps.
React Native core components, layout, styling, animations, lists, platform APIs, and best practices. Use when building iOS/Android UIs with native components.
React Native ecosystem — navigation, state, data fetching, Reanimated, storage, TypeScript patterns, accessibility, and deep linking. Use when building production React Native apps with React Navigation, Zustand, TanStack Query, or Reanimated v3.
Expo toolchain for React Native — Expo Router, EAS Build/Update/Deploy, native modules, SDK upgrading, and Expo UI/data patterns.
| name | react-native-testing |
| description | Deep React Native Testing Library (RNTL) reference — v13 (React 18 sync) and v14 (React 19 async), queries, userEvent, matchers, anti-patterns. |
| metadata | {"author":"maikotrindade","version":"2026.5.0"} |
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.
Check @testing-library/react-native in package.json:
test-renderer)react-test-renderer)| Topic | Description | Reference |
|---|---|---|
| Core patterns | Query priority, render/screen, userEvent vs fireEvent, waitFor, 11 core rules | core-patterns |
| v13 API (React 18) | Sync render, full method tables, fireEvent sync, React 19 compat shims | reference-v13-api |
| v14 API (React 19) | Async render, await-based APIs, removed APIs, v13→v14 migration codemods | reference-v14-api |
| Anti-patterns | Wrong queries, waitFor misuse, unnecessary act, destructuring, missing await | best-practices-anti-patterns |
screen for queries — never destructure from render()getByRole first with { name: '...' } option (most accessibility-aware)findBy* for async elements — not waitFor + getBy*userEvent over fireEvent — more realistic interaction simulationqueryBy* only for non-existence assertions (.not.toBeOnTheScreen())await every API (including render, fireEvent, act)