Skip to content

Commit ee5b304

Browse files
committed
chore: remove default text input role
1 parent db88ec9 commit ee5b304

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/helpers/accessiblity.ts

+1-9
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@ import {
55
} from 'react-native';
66
import { ReactTestInstance } from 'react-test-renderer';
77
import { getHostSiblings, getUnsafeRootElement } from './component-tree';
8-
import {
9-
getHostComponentNames,
10-
isHostText,
11-
isHostTextInput,
12-
} from './host-component-names';
8+
import { getHostComponentNames, isHostText } from './host-component-names';
139
import { getTextContent } from './text-content';
1410

1511
type IsInaccessibleOptions = {
@@ -145,10 +141,6 @@ export function getAccessibilityRole(element: ReactTestInstance) {
145141
return 'text';
146142
}
147143

148-
if (isHostTextInput(element)) {
149-
return 'textbox';
150-
}
151-
152144
return 'none';
153145
}
154146

0 commit comments

Comments
 (0)