a11y rule · error

accessible-touch-target

React Native — Pressable / TouchableOpacity must be ≥ 44pt.

What it flags

Add minHeight / minWidth or height / width values that meet the iOS HIG target.

Examples

On system

<Pressable style={{ minHeight: 44, minWidth: 44 }} />

Flagged

<Pressable />

How to run it

Run npx windcraft check to run this and the other rules over your project. It ships at error severity by default, and your AI tools can call it on a snippet over MCP through validate_component_code — so drift is caught as the code is written, not just in review.

Catch design drift before it ships.