[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

View File

@@ -116,7 +116,8 @@ const Switch = forwardRef<SwitchProps, *>((props, forwardedRef) => {
onFocus: handleFocusState,
ref: forwardedRef,
style: [styles.nativeControl, styles.cursorInherit],
type: 'checkbox'
type: 'checkbox',
role: 'switch'
});
return (