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:
2828
2929``` ts
3030// Explicit "accessible" prop for View
31- < View accessible role = " button" / >
31+ < View accessible accessibilityRole = " button" / >
3232
3333// 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 >
3535```
3636
3737While following elements will not match:
3838
3939``` ts
4040// Missing "accessible" prop for View
41- < View role = " button" / >
41+ < View accessibilityRole = " button" / >
4242
4343// Explicit "accessible={false}" prop for View
44- < View accessible = {false } role = " button" / >
44+ < View accessible = {false } accessibilityRole = " button" / >
4545
4646// 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 >
4848```
4949
5050## 3. ` *ByText ` , ` *ByDisplayValue ` , ` *ByPlaceholderText ` queries now return host elements
You can’t perform that action at this time.
0 commit comments