File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -28,23 +28,23 @@ Following elements will match:
28
28
29
29
``` ts
30
30
// Explicit "accessible" prop for View
31
- < View accessible role = " button" / >
31
+ < View accessible accessibilityRole = " button" / >
32
32
33
33
// No need to "accessible" prop for Text, as it is implicitly accessible element.
34
- < Text role = " button" > Button < / Text >
34
+ < Text accessibilityRole = " button" > Button < / Text >
35
35
```
36
36
37
37
While following elements will not match:
38
38
39
39
``` ts
40
40
// Missing "accessible" prop for View
41
- < View role = " button" / >
41
+ < View accessibilityRole = " button" / >
42
42
43
43
// Explicit "accessible={false}" prop for View
44
- < View accessible = {false } role = " button" / >
44
+ < View accessible = {false } accessibilityRole = " button" / >
45
45
46
46
// Explicit "accessible={false}" for Text, which is implicitly accessible element
47
- < Text accessible = {false } role = " button" > Button < / Text >
47
+ < Text accessible = {false } accessibilityRole = " button" > Button < / Text >
48
48
```
49
49
50
50
## 3. ` *ByText ` , ` *ByDisplayValue ` , ` *ByPlaceholderText ` queries now return host elements
You can’t perform that action at this time.
0 commit comments