mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
56 lines
796 B
JavaScript
56 lines
796 B
JavaScript
// @flow
|
|
|
|
export type A11yRole =
|
|
| 'none'
|
|
| 'button'
|
|
| 'link'
|
|
| 'search'
|
|
| 'image'
|
|
| 'keyboardkey'
|
|
| 'text'
|
|
| 'adjustable'
|
|
| 'imagebutton'
|
|
| 'header'
|
|
| 'summary'
|
|
| 'alert'
|
|
| 'checkbox'
|
|
| 'combobox'
|
|
| 'menu'
|
|
| 'menubar'
|
|
| 'menuitem'
|
|
| 'progressbar'
|
|
| 'radio'
|
|
| 'radiogroup'
|
|
| 'scrollbar'
|
|
| 'spinbutton'
|
|
| 'switch'
|
|
| 'tab'
|
|
| 'tablist'
|
|
| 'timer'
|
|
| 'toolbar';
|
|
|
|
export type A11yState = {|
|
|
disabled?: boolean,
|
|
selected?: boolean,
|
|
checked?: boolean | 'mixed',
|
|
busy?: boolean,
|
|
expanded?: boolean,
|
|
|};
|
|
|
|
export type A11yStates =
|
|
| 'disabled'
|
|
| 'selected'
|
|
| 'checked'
|
|
| 'unchecked'
|
|
| 'busy'
|
|
| 'expanded'
|
|
| 'collapsed'
|
|
| 'hasPopup';
|
|
|
|
export type A11yValue = {
|
|
min?: number,
|
|
max?: number,
|
|
now?: number,
|
|
text?: string,
|
|
};
|