Render the component with React Native Testing Library, find the control by an accessible role or visible text, press it, and assert the user-visible result: render(<Counter />); fireEvent.press(getByRole('button', { name: /increment/i })); expect(getByText('Count: 1')).toBeTruthy(); Prefer getByRole or getByText over testID, and use waitFor or findBy queries for asynchronous updates. Test behavior rather than component implementation details.
Scanned 9/5/2026
Install to Claude Code
npx -y skills add HoangNguyen0403/agent-skills-standard --skill react-native-testing --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of React Native Testing?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/hoangnguyen0403-react-native-testing-agent-skills-standard)More formats (shields.io, HTML) on the badges page.
Render the component with React Native Testing Library, find the control by an accessible role or visible text, press it, and assert the user-visible result:
render(<Counter />);
fireEvent.press(getByRole('button', { name: /increment/i }));
expect(getByText('Count: 1')).toBeTruthy();
Prefer getByRole or getByText over testID, and use waitFor or findBy queries for asynchronous updates. Test behavior rather than component implementation details.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.