Skip to content

Commit 7b02f51

Browse files
chore: fix migration guide role prop naming (#1382)
1 parent 7eb1114 commit 7b02f51

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

website/docs/MigrationV12.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

3737
While 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

0 commit comments

Comments
 (0)