use context to pick default pressable component
This commit is contained in:
@@ -468,6 +468,7 @@ export const Button = React.forwardRef<View, ButtonProps>(
|
|||||||
role="button"
|
role="button"
|
||||||
accessibilityHint={undefined} // optional
|
accessibilityHint={undefined} // optional
|
||||||
{...rest}
|
{...rest}
|
||||||
|
// @ts-expect-error ref type
|
||||||
ref={ref}
|
ref={ref}
|
||||||
aria-label={label}
|
aria-label={label}
|
||||||
aria-pressed={state.pressed}
|
aria-pressed={state.pressed}
|
||||||
|
|||||||
Reference in New Issue
Block a user