fix accessibility
This commit is contained in:
@@ -468,6 +468,7 @@ export const Button = React.forwardRef<View, ButtonProps>(
|
||||
role="button"
|
||||
accessibilityHint={undefined} // optional
|
||||
{...rest}
|
||||
// @ts-ignore - this will always be a pressable
|
||||
ref={ref}
|
||||
aria-label={label}
|
||||
aria-pressed={state.pressed}
|
||||
|
||||
@@ -122,6 +122,8 @@ export class NormalizedRNGHPressable extends React.Component<PressableProps> {
|
||||
onPressOut={this.onPressOut}
|
||||
onHoverIn={this.onHoverIn}
|
||||
onHoverOut={this.onHoverOut}
|
||||
accessible={true}
|
||||
accessibilityRole="button"
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user