-
Notifications
You must be signed in to change notification settings - Fork 272
Accessibility Roles
Maciej Jastrzebski edited this page Sep 15, 2023
·
9 revisions
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" |
Element | Screen Reader |
---|---|
<View accessible /> |
... |
<View accessible accessibilityRole="none" /> |
... |
<Text accessibilityRole="none">Hello</Text> |
... |
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" |
Element | Screen Reader |
---|---|
<Text>Hello</Text> |
... |
<Text accessibilityRole="text">Hello</Text> |
... |
<View accessible accessibilityLabel="Hello" /> |
(none) |
<View accessible accessibilityRole="text" accessibilityLabel="Hello" /> |
... |