mirror of
https://github.com/zoriya/react-native-web.git
synced 2025-12-06 06:36:13 +00:00
[fix] Patch more internal sources of deprecation warnings
This commit is contained in:
@@ -56,10 +56,10 @@ const ActivityIndicator: React.AbstractComponent<
|
||||
return (
|
||||
<View
|
||||
{...other}
|
||||
accessibilityRole="progressbar"
|
||||
accessibilityValueMax={1}
|
||||
accessibilityValueMin={0}
|
||||
aria-valuemax={1}
|
||||
aria-valuemin={0}
|
||||
ref={forwardedRef}
|
||||
role="progressbar"
|
||||
style={[styles.container, style]}
|
||||
>
|
||||
<View
|
||||
|
||||
@@ -22,6 +22,7 @@ type CheckBoxProps = {
|
||||
disabled?: boolean,
|
||||
onChange?: ?(e: any) => void,
|
||||
onValueChange?: ?(e: any) => void,
|
||||
readOnly?: boolean,
|
||||
value?: boolean
|
||||
};
|
||||
|
||||
@@ -35,6 +36,7 @@ const CheckBox: React.AbstractComponent<
|
||||
disabled,
|
||||
onChange,
|
||||
onValueChange,
|
||||
readOnly,
|
||||
style,
|
||||
value,
|
||||
...other
|
||||
@@ -64,7 +66,7 @@ const CheckBox: React.AbstractComponent<
|
||||
checked: value,
|
||||
disabled: disabled,
|
||||
onChange: handleChange,
|
||||
readOnly: ariaReadOnly || other.accessibilityReadOnly,
|
||||
readOnly: readOnly || ariaReadOnly || other.accessibilityReadOnly,
|
||||
ref: forwardedRef,
|
||||
style: [styles.nativeControl, styles.cursorInherit],
|
||||
type: 'checkbox'
|
||||
|
||||
@@ -54,9 +54,9 @@ const ModalContent: React.AbstractComponent<
|
||||
return (
|
||||
<View
|
||||
{...rest}
|
||||
accessibilityModal={true}
|
||||
accessibilityRole={active ? 'dialog' : null}
|
||||
aria-modal={true}
|
||||
ref={forwardedRef}
|
||||
role={active ? 'dialog' : null}
|
||||
style={style}
|
||||
>
|
||||
<View style={styles.container}>{children}</View>
|
||||
|
||||
@@ -25,7 +25,7 @@ import canUseDOM from '../../modules/canUseDom';
|
||||
|
||||
const FocusBracket = () => {
|
||||
return createElement('div', {
|
||||
accessibilityRole: 'none',
|
||||
role: 'none',
|
||||
tabIndex: 0,
|
||||
style: styles.focusBracket
|
||||
});
|
||||
|
||||
@@ -101,12 +101,12 @@ const TextInput: React.AbstractComponent<
|
||||
blurOnSubmit,
|
||||
clearTextOnFocus,
|
||||
dir,
|
||||
editable = true,
|
||||
editable,
|
||||
enterKeyHint,
|
||||
inputMode,
|
||||
keyboardType = 'default',
|
||||
keyboardType,
|
||||
multiline = false,
|
||||
numberOfLines = 1,
|
||||
numberOfLines,
|
||||
onBlur,
|
||||
onChange,
|
||||
onChangeText,
|
||||
@@ -133,9 +133,9 @@ const TextInput: React.AbstractComponent<
|
||||
onStartShouldSetResponderCapture,
|
||||
onSubmitEditing,
|
||||
placeholderTextColor,
|
||||
readOnly,
|
||||
readOnly = false,
|
||||
returnKeyType,
|
||||
rows,
|
||||
rows = 1,
|
||||
secureTextEntry = false,
|
||||
selection,
|
||||
selectTextOnFocus,
|
||||
|
||||
Reference in New Issue
Block a user