Docs
Accessibility
Every interactive component ships with accessibility defaults: roles, labels, hit slop, screen reader announcements and reduced-motion support. Text colours are checked against WCAG contrast on every surface (minTextContrast, 4.5 by default, 7 for AAA). You can override any default per instance.
<NativeUIProvider config={{ minTextContrast: 7 }}>
<Button
title="Save"
accessibilityHint="Saves your changes and moves to the next step"
onPress={save}
/>
</NativeUIProvider>
Key points
- Interactive components set their role, label and state for VoiceOver and TalkBack.
- minTextContrast checks text against its surface: 4.5 by default, 7 for AAA.
- Motion follows the reduced motion setting of the system.
- Since 2.1, state and value are also written as ARIA attributes on React Native Web.