File tree Expand file tree Collapse file tree 5 files changed +14
-12
lines changed
packages/react-native-web/src/exports Expand file tree Collapse file tree 5 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -56,10 +56,10 @@ const ActivityIndicator: React.AbstractComponent<
56
56
return (
57
57
< View
58
58
{ ...other }
59
- accessibilityRole = "progressbar"
60
- accessibilityValueMax = { 1 }
61
- accessibilityValueMin = { 0 }
59
+ aria-valuemax = { 1 }
60
+ aria-valuemin = { 0 }
62
61
ref = { forwardedRef }
62
+ role = "progressbar"
63
63
style = { [ styles . container , style ] }
64
64
>
65
65
< View
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ type CheckBoxProps = {
22
22
disabled ?: boolean ,
23
23
onChange ?: ?( e : any ) => void ,
24
24
onValueChange ?: ?( e : any ) => void ,
25
+ readOnly ?: boolean ,
25
26
value ?: boolean
26
27
} ;
27
28
@@ -35,6 +36,7 @@ const CheckBox: React.AbstractComponent<
35
36
disabled,
36
37
onChange,
37
38
onValueChange,
39
+ readOnly,
38
40
style,
39
41
value,
40
42
...other
@@ -64,7 +66,7 @@ const CheckBox: React.AbstractComponent<
64
66
checked : value ,
65
67
disabled : disabled ,
66
68
onChange : handleChange ,
67
- readOnly : ariaReadOnly || other . accessibilityReadOnly ,
69
+ readOnly : readOnly || ariaReadOnly || other . accessibilityReadOnly ,
68
70
ref : forwardedRef ,
69
71
style : [ styles . nativeControl , styles . cursorInherit ] ,
70
72
type : 'checkbox'
Original file line number Diff line number Diff line change @@ -54,9 +54,9 @@ const ModalContent: React.AbstractComponent<
54
54
return (
55
55
< View
56
56
{ ...rest }
57
- accessibilityModal = { true }
58
- accessibilityRole = { active ? 'dialog' : null }
57
+ aria-modal = { true }
59
58
ref = { forwardedRef }
59
+ role = { active ? 'dialog' : null }
60
60
style = { style }
61
61
>
62
62
< View style = { styles . container } > { children } </ View >
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import canUseDOM from '../../modules/canUseDom';
25
25
26
26
const FocusBracket = ( ) => {
27
27
return createElement ( 'div' , {
28
- accessibilityRole : 'none' ,
28
+ role : 'none' ,
29
29
tabIndex : 0 ,
30
30
style : styles . focusBracket
31
31
} ) ;
Original file line number Diff line number Diff line change @@ -101,12 +101,12 @@ const TextInput: React.AbstractComponent<
101
101
blurOnSubmit,
102
102
clearTextOnFocus,
103
103
dir,
104
- editable = true ,
104
+ editable,
105
105
enterKeyHint,
106
106
inputMode,
107
- keyboardType = 'default' ,
107
+ keyboardType,
108
108
multiline = false ,
109
- numberOfLines = 1 ,
109
+ numberOfLines,
110
110
onBlur,
111
111
onChange,
112
112
onChangeText,
@@ -133,9 +133,9 @@ const TextInput: React.AbstractComponent<
133
133
onStartShouldSetResponderCapture,
134
134
onSubmitEditing,
135
135
placeholderTextColor,
136
- readOnly,
136
+ readOnly = false ,
137
137
returnKeyType,
138
- rows,
138
+ rows = 1 ,
139
139
secureTextEntry = false ,
140
140
selection,
141
141
selectTextOnFocus,
You can’t perform that action at this time.
0 commit comments