Guides
Two read-only checks. doctor answers “is my project set up correctly?”. audit answers “how healthy is my UI code?”
npx nativra-cli doctorRuns these checks and prints a pass, warning or failure for each:
app.json or app.config exists.tsconfig.json exists and declares a path alias.nativra.lock.json parses, and how many items it tracks.doctor --fix repairs what it safely can: it scaffolds a missing nativra.json from the detected environment and a missing tailwind.config.js. An invalid nativra.json is reported, never overwritten.
doctor --json prints { ok, checks: [{ name, status, detail }] }, with each status pass, warn or fail. Like the plain output, it exits with code 1 when a check fails.
npx nativra-cli doctor --json > doctor-report.jsonnpx nativra-cli auditScans your source files and reports findings with file, line and column, plus a score out of 100 and a grade (A+ to D). Files installed by Nativra count as compliant.
Pressable or Touchable without accessibilityRole, accessibilityLabel or spread props. Worth 40 points, scaled by coverage.TouchableOpacity / TouchableHighlight. Up to 20 points.allowFontScaling={false}, which blocks larger text for people who need it. Up to 10 points deducted.audit --fix rewrites TouchableOpacity and TouchableHighlight to Pressable. Preview first, then apply:
npx nativra-cli audit --fix --dry-runnpx nativra-cli audit --fix--min-score exits with code 1 when the score is below the number you give, so the job fails. audit --json prints the full report as JSON for storing or further checks; the two combine.
npx nativra-cli audit --min-score 80npx nativra-cli audit --json --min-score 80 > audit-report.json