[fix] Add "switch" role to Switch implementation

Fix #1855
This commit is contained in:
Nishan
2020-12-23 10:38:45 +05:30
committed by Nicolas Gallagher
parent 6739ab95cf
commit e0cebea073
+2 -1
View File
@@ -116,7 +116,8 @@ const Switch = forwardRef<SwitchProps, *>((props, forwardedRef) => {
onFocus: handleFocusState, onFocus: handleFocusState,
ref: forwardedRef, ref: forwardedRef,
style: [styles.nativeControl, styles.cursorInherit], style: [styles.nativeControl, styles.cursorInherit],
type: 'checkbox' type: 'checkbox',
role: 'switch'
}); });
return ( return (