use context to pick default pressable component

This commit is contained in:
Hailey
2024-10-02 16:34:16 -07:00
parent 6d7b54cdf7
commit 10cb87b695
+1
View File
@@ -468,6 +468,7 @@ export const Button = React.forwardRef<View, ButtonProps>(
role="button"
accessibilityHint={undefined} // optional
{...rest}
// @ts-expect-error ref type
ref={ref}
aria-label={label}
aria-pressed={state.pressed}