Skip to content

Accessibility Roles

Maciej Jastrzebski edited this page Sep 15, 2023 · 9 revisions

Default View role

iOS

Element Traits Label Screen Reader
<View accessible /> (empty) (none) "Description for element unavailable"
<View accessible accessibilityRole="none" /> (empty) Hello "Description for element unavailable"
<Text accessibilityRole="none" /> (empty) Hello "Description for element unavailable"
<Text /> Static Text (empty string) "Description for element unavailable"

Android

Element Screen Reader
<View accessible /> ...
<View accessible accessibilityRole="none" /> ...
<Text accessibilityRole="none">Hello</Text> ...

Default Text role

iOS

Element Traits Label Screen Reader
<Text>Hello</Text> Static Text Hello "Hello"
<Text accessibilityRole="text">Hello</Text> Static Text Hello "Hello"
<View accessible accessibilityRole="text" accessibilityLabel="Hello" /> Static Text Hello "Hello"
<View accessible accessibilityLabel="Hello" /> (empty) (none) "Hello"

Android

Element Screen Reader
<Text>Hello</Text> ...
<Text accessibilityRole="text">Hello</Text> ...
<View accessible accessibilityLabel="Hello" /> (none)
<View accessible accessibilityRole="text" accessibilityLabel="Hello" /> ...
Clone this wiki locally